bitronix.tm.resource.jdbc
Class JdbcResultSetHandle
java.lang.Object
bitronix.tm.resource.jdbc.BaseProxyHandlerClass
bitronix.tm.resource.jdbc.JdbcResultSetHandle
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class JdbcResultSetHandle
- extends BaseProxyHandlerClass
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcResultSetHandle
public JdbcResultSetHandle(java.sql.ResultSet delegate,
BaseProxyHandlerClass statementHandle)
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
unwrap
public <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getProxiedDelegate
public java.lang.Object getProxiedDelegate()
throws java.lang.Exception
- Description copied from class:
BaseProxyHandlerClass
- Must 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:
getProxiedDelegate in class BaseProxyHandlerClass
- Returns:
- the true delegate object
- Throws:
java.lang.Exception - can throw any exception if desired
close
public void close()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getStatement
public java.sql.Statement getStatement()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
Copyright © 2006-2018 Bitronix Software. All Rights Reserved.