public class JdbcPreparedStatementHandle extends BaseProxyHandlerClass
PreparedStatement wrapper.
This class is a proxy handler for a PreparedStatement. It does not
implement the PreparedStatement 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 |
|---|
JdbcPreparedStatementHandle(java.lang.String sql) |
JdbcPreparedStatementHandle(java.lang.String sql,
int autoGeneratedKeys) |
JdbcPreparedStatementHandle(java.lang.String sql,
int[] columnIndexes) |
JdbcPreparedStatementHandle(java.lang.String sql,
int resultSetType,
int resultSetConcurrency) |
JdbcPreparedStatementHandle(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
JdbcPreparedStatementHandle(java.lang.String sql,
java.lang.String[] columnNames) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(java.lang.Object obj)
Overridden equals() that takes all PreparedStatement attributes into
account.
|
protected java.sql.PreparedStatement |
getDelegateUnchecked() |
protected JdbcPooledConnection |
getPooledConnection() |
java.lang.Object |
getProxiedDelegate()
Must be implemented by the sub-class of this class.
|
int |
hashCode() |
boolean |
isClosed() |
boolean |
isWrapperFor(java.lang.Class<?> iface) |
protected void |
setDelegate(java.sql.PreparedStatement delegate) |
protected void |
setPooledConnection(JdbcPooledConnection pooledConnection)
Set the parent connection that created this statement.
|
java.lang.String |
toString() |
<T> T |
unwrap(java.lang.Class<T> iface) |
invokepublic JdbcPreparedStatementHandle(java.lang.String sql)
public JdbcPreparedStatementHandle(java.lang.String sql,
int autoGeneratedKeys)
public JdbcPreparedStatementHandle(java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
public JdbcPreparedStatementHandle(java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
public JdbcPreparedStatementHandle(java.lang.String sql,
int[] columnIndexes)
public JdbcPreparedStatementHandle(java.lang.String sql,
java.lang.String[] columnNames)
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.SQLExceptionprotected void setPooledConnection(JdbcPooledConnection pooledConnection)
pooledConnection - the parent JdbcPooledConnectionprotected JdbcPooledConnection getPooledConnection()
protected java.sql.PreparedStatement getDelegateUnchecked()
protected void setDelegate(java.sql.PreparedStatement delegate)
public java.lang.Object getProxiedDelegate()
throws java.lang.Exception
BaseProxyHandlerClassgetProxiedDelegate in class BaseProxyHandlerClassjava.lang.Exception - can throw any exception if desiredpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void close()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isClosed()
throws java.sql.SQLException
java.sql.SQLExceptionCopyright © 2006-2021 Bitronix Software. All Rights Reserved.