public class JdbcStatementHandle extends BaseProxyHandlerClass
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.
| Constructor and Description |
|---|
JdbcStatementHandle(java.sql.Statement delegate,
JdbcPooledConnection pooledConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(java.lang.Object object) |
java.sql.ResultSet |
executeQuery(java.lang.String sql) |
java.sql.ResultSet |
getGeneratedKeys() |
java.lang.Object |
getProxiedDelegate()
Must be implemented by the sub-class of this class.
|
java.sql.ResultSet |
getResultSet() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
<T> T |
unwrap(java.lang.Class<T> iface) |
invokepublic JdbcStatementHandle(java.sql.Statement delegate,
JdbcPooledConnection pooledConnection)
public boolean isWrapperFor(java.lang.Class<?> iface)
throws java.sql.SQLException
java.sql.SQLExceptionpublic <T> T unwrap(java.lang.Class<T> iface)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.Object getProxiedDelegate()
throws java.lang.Exception
BaseProxyHandlerClassgetProxiedDelegate in class BaseProxyHandlerClassjava.lang.Exception - can throw any exception if desiredpublic void close()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.ResultSet executeQuery(java.lang.String sql)
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.ResultSet getGeneratedKeys()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.ResultSet getResultSet()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean equals(java.lang.Object object)
equals in class java.lang.ObjectCopyright © 2006-2022 Bitronix Software. All Rights Reserved.