Package bitronix.tm.resource.jdbc
Class JdbcConnectionHandle
java.lang.Object
bitronix.tm.resource.jdbc.BaseProxyHandlerClass
bitronix.tm.resource.jdbc.JdbcConnectionHandle
- All Implemented Interfaces:
InvocationHandler
Disposable Connection handle.
- Author:
- lorban, brettw
-
Constructor Summary
ConstructorsConstructorDescriptionJdbcConnectionHandle(JdbcPooledConnection jdbcPooledConnection, Connection connection) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcommit()createStatement(int resultSetType, int resultSetConcurrency) createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) booleanMust be implemented by the sub-class of this class.booleanisClosed()booleanisWrapperFor(Class<?> iface) prepareCall(String sql) prepareCall(String sql, int resultSetType, int resultSetConcurrency) prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String sql) prepareStatement(String sql, int autoGeneratedKeys) prepareStatement(String sql, int[] columnIndexes) prepareStatement(String sql, int resultSetType, int resultSetConcurrency) prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String sql, String[] columnNames) voidreleaseSavepoint(Savepoint savepoint) voidrollback()voidvoidsetAutoCommit(boolean autoCommit) setSavepoint(String name) toString()<T> TMethods inherited from class bitronix.tm.resource.jdbc.BaseProxyHandlerClass
invoke
-
Constructor Details
-
JdbcConnectionHandle
-
-
Method Details
-
getPooledConnection
-
getConnection
-
toString
-
close
- Throws:
SQLException
-
commit
- Throws:
SQLException
-
rollback
- Throws:
SQLException
-
rollback
- Throws:
SQLException
-
setSavepoint
- Throws:
SQLException
-
setSavepoint
- Throws:
SQLException
-
releaseSavepoint
- Throws:
SQLException
-
getAutoCommit
- Throws:
SQLException
-
setAutoCommit
- Throws:
SQLException
-
isClosed
- Throws:
SQLException
-
createStatement
- Throws:
SQLException
-
createStatement
- Throws:
SQLException
-
createStatement
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Throws:
SQLException
-
prepareCall
- Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Throws:
SQLException
-
prepareStatement
- Throws:
SQLException
-
prepareStatement
- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Throws:
SQLException
-
prepareStatement
- Throws:
SQLException
-
prepareStatement
- Throws:
SQLException
-
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
-