Package bitronix.tm.resource.jdbc
Class JdbcResultSetHandle
java.lang.Object
bitronix.tm.resource.jdbc.BaseProxyHandlerClass
bitronix.tm.resource.jdbc.JdbcResultSetHandle
- All Implemented Interfaces:
InvocationHandler
ResultSet
ResultSet wrapper.
This class is a proxy handler for a ResultSet. It does not
implement the ResultSet interface or extend a class directly,
but you methods implemented here will override those of the
underlying delegate. Simply implement a method with the same
signature, and the local method will be called rather than the delegate.
- Author:
- brettw
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcResultSetHandle(ResultSet delegate, BaseProxyHandlerClass statementHandle) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Must be implemented by the sub-class of this class.booleanisWrapperFor(Class<?> iface) <T> TMethods inherited from class bitronix.tm.resource.jdbc.BaseProxyHandlerClass
invoke
-
Constructor Details
-
JdbcResultSetHandle
-
-
Method Details
-
isWrapperFor
- Throws:
SQLException
-
unwrap
- Throws:
SQLException
-
getProxiedDelegate
Description copied from class:BaseProxyHandlerClassMust be implemented by the sub-class of this class. This method should return the "true" object to be delegated to in the case that the method is not overridden by the sub-class.- Specified by:
getProxiedDelegatein classBaseProxyHandlerClass- Returns:
- the true delegate object
- Throws:
Exception- can throw any exception if desired
-
close
- Throws:
SQLException
-
getStatement
- Throws:
SQLException
-