bitronix.tm.resource.jdbc
Class JdbcStatementHandle
java.lang.Object
bitronix.tm.resource.jdbc.BaseProxyHandlerClass
bitronix.tm.resource.jdbc.JdbcStatementHandle
- All Implemented Interfaces:
- InvocationHandler
public class JdbcStatementHandle
- extends BaseProxyHandlerClass
Statement Statement
wrapper.
This class is a proxy handler for a Statement. It does not
implement the Statement 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
JdbcStatementHandle
public JdbcStatementHandle(Statement delegate,
JdbcPooledConnection pooledConnection)
isWrapperFor
public boolean isWrapperFor(Class<?> iface)
throws SQLException
- Throws:
SQLException
unwrap
public <T> T unwrap(Class<T> iface)
throws SQLException
- Throws:
SQLException
getProxiedDelegate
public Object getProxiedDelegate()
throws 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:
Exception
- can throw any exception if desired
close
public void close()
throws SQLException
- Throws:
SQLException
executeQuery
public ResultSet executeQuery(String sql)
throws SQLException
- Throws:
SQLException
getGeneratedKeys
public ResultSet getGeneratedKeys()
throws SQLException
- Throws:
SQLException
getResultSet
public ResultSet getResultSet()
throws SQLException
- Throws:
SQLException
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
Copyright © 2006-2013 Bitronix Software. All Rights Reserved.