@Deprecated
public class StatementHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
PooledConnectionHandler
ensure that statements will be closed before connection is returned to the
pool.Constructor and Description |
---|
StatementHandler(org.firebirdsql.pool.PooledConnectionHandler connectionHandler,
java.sql.Statement wrappedObject)
Deprecated.
Create instance of this class for the specified connection handler and
|
Modifier and Type | Method and Description |
---|---|
java.sql.Statement |
getProxy()
Deprecated.
Get dynamic proxy instant wrapping the statement.
|
java.sql.Statement |
getWrappedObject()
Deprecated.
Get original statement that was wrapped.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Deprecated.
Invoke a specified method with the specified arguments on the specified
proxy.
|
public StatementHandler(org.firebirdsql.pool.PooledConnectionHandler connectionHandler, java.sql.Statement wrappedObject)
connectionHandler
- instance of PooledConnectionHandler
that is
responsible for a connection that created a statement to wrap.wrappedObject
- instance of Statement
to wrap.public java.sql.Statement getProxy()
Statement
.public java.sql.Statement getWrappedObject()
Statement
.public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
Statement.close()
is called
and de-registers the statement from automatic close on connection close.invoke
in interface java.lang.reflect.InvocationHandler
proxy
- proxy, on which the method was called.method
- method that was invoked.args
- arguments that were passed to the method.java.lang.Throwable
- throwable that was thrown during method processing.Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.