|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides helper methods that can be used by customers
in their implementations of their
Method Summary | |
---|---|
javax.resource.cci.ResultSet |
createCCIResultSet(java.sql.ResultSet resultSet,
java.lang.Object connection)
This method creates a CCI ResultSet corresponding to the given SQL ResultSet. |
sqlj.runtime.ref.DefaultContext |
getConnectionContext(java.lang.Object conn)
This method returns a SQLj connection context. |
java.sql.CallableStatement |
prepareCall(java.lang.Object conn,
java.lang.String sql)
This method gets a JDBC CallableStatement from the connection with the given SQL statement. |
java.sql.CallableStatement |
prepareCall(java.lang.Object conn,
java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
This method gets a JDBC CallableStatement from the connection with the given SQL statement. |
void |
returnCCIResultSet(javax.resource.cci.ResultSet resultSet)
This method returns a CCI ResultSet to the cache. |
Methods inherited from interface com.ibm.websphere.rsadapter.WSPushDownHelper |
---|
createCCIIndexedRecord, createCCIRecord, createResourceException, createResourceException, returnCCIIndexedRecord |
Method Detail |
public java.sql.CallableStatement prepareCall(java.lang.Object conn, java.lang.String sql) throws javax.resource.ResourceException
This method gets a JDBC CallableStatement from the connection with the given SQL statement.
conn
- the connection from which to get the statement. This should
be the connection object passed in to the method of the
UserDefinedPushDownMethods implementation class.sql
- the SQL statement.
javax.resource.ResourceException
- thrown if an error occurs getting the
CallableStatement.public java.sql.CallableStatement prepareCall(java.lang.Object conn, java.lang.String sql, int resultSetType, int resultSetConcurrency) throws javax.resource.ResourceException
This method gets a JDBC CallableStatement from the connection with the given SQL statement.
conn
- the connection from which to get the statement. This should
be the connection object passed in to the method of the
UserDefinedPushDownMethods implementation class.sql
- the SQL statement.resultSetType
- a result set type; see ResultSet.TYPE_XXXresultSetConcurrency
- a concurrency type; see ResultSet.CONCUR_XXX
javax.resource.ResourceException
- thrown if an error occurs getting the
CallableStatement.public javax.resource.cci.ResultSet createCCIResultSet(java.sql.ResultSet resultSet, java.lang.Object connection) throws javax.resource.ResourceException
This method creates a CCI ResultSet corresponding to the given SQL ResultSet. Such a CCI ResultSet can be returned from a method in the UserDefinedPushDownMethodsImpl, if the data in the result set is arranged in expected order (as documented in the generated JavaDoc comments for the UserDefinedPushDownMethodsImpl method).
If the specified object is already a javax.resource.cci.ResultSet, this method will return the specified object unchanged. Otherwise, this java.sql.ResultSet object will be wrapped in a CCI ResultSet.
resultSet
- an SQL ResultSet to be wrapped in the CCI ResultSet.connection
- the connection object passed in to the method of the
UserDefinedPushDownMethods implementation class.
javax.resource.ResourceException
- thrown if an error occurs creating the
CCI ResultSetpublic void returnCCIResultSet(javax.resource.cci.ResultSet resultSet) throws javax.resource.ResourceException
This method returns a CCI ResultSet to the cache.
resultSet
- a CCI ResultSet
javax.resource.ResourceException
- thrown if an error occurs returning the
CCI ResultSet to the cachepublic sqlj.runtime.ref.DefaultContext getConnectionContext(java.lang.Object conn) throws javax.resource.ResourceException
This method returns a SQLj connection context. This context contains the physical connection.
conn
- the connection from which to get the context. This should
be the connection object passed in to the method of the
UserDefinedPushDownMethods implementation class.
javax.resource.ResourceException
- thrown if an error occurs creating the SQLj
connection context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |