ResultSetInfo (Java EE 5)

Java EE API


javax.resource.cci Interface ResultSetInfo


public interface ResultSetInfo


接口 javax.resource.cci.ResultSetInfo 提供有关连接的 EIS 实例为 ResultSet 提供的支持的信息。组件调用方法 Connection.getResultInfo 获取 ResultSetInfo 实例。

不要求 CCI 实现支持 javax.resource.cci.ResultSetInfo 接口。只有当 CCI 支持 ResultSet 工具时才提供此接口的实现。

英文文档:

The interface javax.resource.cci.ResultSetInfo provides information on the support provided for ResultSet by a connected EIS instance. A component calls the method Connection.getResultInfo to get the ResultSetInfo instance.

A CCI implementation is not required to support javax.resource.cci.ResultSetInfo interface. The implementation of this interface is provided only if the CCI supports the ResultSet facility.

Version:
0.9
Author:
Rahul Sharma
See Also:
Connection, ResultSet, ConnectionMetaData

Method Summary
 boolean
 boolean
 boolean
 boolean
 boolean
 boolean
 boolean
 boolean
 boolean
 boolean
 boolean
 

Method Detail

public boolean updatesAreDetected(int type) throws ResourceException
指示是否可以通过调用 ResultSet.rowUpdated 方法检测可见行的更新。
type ResultSet 的类型,即 ResultSet.TYPE_XXX
return 如果检测到结果集类型更改,则返回 true;否则返回 false
ThrowsResourceException: 无法获取信息
See also rowUpdated
英文文档:

updatesAreDetected

boolean updatesAreDetected(int type)
                           throws ResourceException
Indicates whether or not a visible row update can be detected by calling the method ResultSet.rowUpdated.

Parameters:
type - type of the ResultSet i.e. ResultSet.TYPE_XXX
Returns:
true if changes are detected by the result set type; false otherwise
Throws:
ResourceException - Failed to get the information
See Also:
ResultSet.rowUpdated()

public boolean insertsAreDetected(int type) throws ResourceException
指示是否可以通过调用 ResultSet.rowInserted 检测可见行的插入。
type ResultSet 的类型,即 ResultSet.TYPE_XXX
return 如果检测到结果集类型更改,则返回 true;否则返回 false
ThrowsResourceException: 无法获取信息
See also rowInserted
英文文档:

insertsAreDetected

boolean insertsAreDetected(int type)
                           throws ResourceException
Indicates whether or not a visible row insert can be detected by calling ResultSet.rowInserted.

Parameters:
type - type of the ResultSet i.e. ResultSet.TYPE_XXX
Returns:
true if changes are detected by the result set type; false otherwise
Throws:
ResourceException - Failed to get the information
See Also:
ResultSet.rowInserted()

public boolean deletesAreDetected(int type) throws ResourceException
英文文档:

deletesAreDetected

boolean deletesAreDetected(int type)
                           throws ResourceException
Throws:
ResourceException

public boolean supportsResultSetType(int type) throws ResourceException
指示资源适配器是否支持某个 ResultSet 类型。
type ResultSet 的类型,即 ResultSet.TYPE_XXX
return 如果支持 ResultSet 类型,则返回 true;否则返回 false
ThrowsResourceException: 无法获取信息
英文文档:

supportsResultSetType

boolean supportsResultSetType(int type)
                              throws ResourceException
Indicates whether or not a resource adapter supports a type of ResultSet.

Parameters:
type - type of the ResultSet i.e. ResultSet.TYPE_XXX
Returns:
true if ResultSet type supported; false otherwise
Throws:
ResourceException - Failed to get the information

public boolean supportsResultTypeConcurrency(int type, int concurrency) throws ResourceException
指示资源适配器是否支持与给定的 ResultSet 类型组合的并发性类型。
type ResultSet 的类型,即 ResultSet.TYPE_XXX
concurrency 在 java.sql.ResultSet 中定义的 ResultSet 并发性类型
return 如果支持指定的组合,则返回 true;否则返回 false
ThrowsResourceException: 无法获取信息
英文文档:

supportsResultTypeConcurrency

boolean supportsResultTypeConcurrency(int type,
                                      int concurrency)
                                      throws ResourceException
Indicates whether or not a resource adapter supports the concurrency type in combination with the given ResultSet type/

Parameters:
type - type of the ResultSet i.e. ResultSet.TYPE_XXX
concurrency - ResultSet concurrency type defined in java.sql.ResultSet
Returns:
true if the specified combination supported; false otherwise
Throws:
ResourceException - Failed to get the information

public boolean othersUpdatesAreVisible(int type) throws ResourceException
指示其他结果集类型进行的更新是否可见。
type ResultSet 的类型,即 ResultSet.TYPE_XXX
return 如果其他结果集类型进行的更新对于 ResultSet 类型是可见的,则返回 true;否则返回 false
ThrowsResourceException: 无法获取信息
英文文档:

othersUpdatesAreVisible

boolean othersUpdatesAreVisible(int type)
                                throws ResourceException
Indicates whether updates made by others are visible.

Parameters:
type - type of the ResultSet i.e. ResultSet.TYPE_XXX
Returns:
true if updates by others are visible for the ResultSet type; false otherwise
Throws:
ResourceException - Failed to get the information

public boolean othersDeletesAreVisible(int type) throws ResourceException
指示其他结果集类型进行的删除是否可见。
type ResultSet 的类型,即 ResultSet.TYPE_XXX
return 如果其他结果集类型进行的删除对于 ResultSet 类型是可见的,则返回 true;否则返回 false
ThrowsResourceException: 无法获取信息
英文文档:

othersDeletesAreVisible

boolean othersDeletesAreVisible(int type)
                                throws ResourceException
Indicates whether deletes made by others are visible.

Parameters:
type - type of the ResultSet i.e. ResultSet.TYPE_XXX
Returns:
true if deletes by others are visible for the ResultSet type; false otherwise
Throws:
ResourceException - Failed to get the information

public boolean othersInsertsAreVisible(int type) throws ResourceException
指示其他结果集类型进行的插入是否可见。
type ResultSet 的类型,即 ResultSet.TYPE_XXX
return 如果其他结果集类型进行的插入对于 ResultSet 类型是可见的,则返回 true;否则返回 false
ThrowsResourceException: 无法获取信息
英文文档:

othersInsertsAreVisible

boolean othersInsertsAreVisible(int type)
                                throws ResourceException
Indicates whether inserts made by others are visible.

Parameters:
type - type of the ResultSet i.e. ResultSet.TYPE_XXX
Returns:
true if inserts by others are visible for the ResultSet type; false otherwise
Throws:
ResourceException - Failed to get the information

public boolean ownUpdatesAreVisible(int type) throws ResourceException
英文文档:

ownUpdatesAreVisible

boolean ownUpdatesAreVisible(int type)
                             throws ResourceException
Throws:
ResourceException

public boolean ownInsertsAreVisible(int type) throws ResourceException
英文文档:

ownInsertsAreVisible

boolean ownInsertsAreVisible(int type)
                             throws ResourceException
Throws:
ResourceException

public boolean ownDeletesAreVisible(int type) throws ResourceException
英文文档:

ownDeletesAreVisible

boolean ownDeletesAreVisible(int type)
                             throws ResourceException
Throws:
ResourceException


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!