@Deprecated
public class PooledPreparedStatementHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Modifier and Type | Method and Description |
---|---|
protected void |
checkCorrectness(java.lang.reflect.Method method)
Deprecated.
Check if method call is correct.
|
protected void |
handleForceClose()
Deprecated.
|
protected boolean |
handleIsCached()
Deprecated.
|
protected void |
handleStatementClose(XPreparedStatementModel key,
java.lang.Object proxy)
Deprecated.
Handle
Statement.close() call. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Deprecated.
Invoke method on a specified proxy.
|
protected void handleStatementClose(XPreparedStatementModel key, java.lang.Object proxy) throws java.sql.SQLException
Statement.close()
call.key
- XPreparedStatementModel
to closeproxy
- dynamic proxy wrapping prepared statement.java.sql.SQLException
- if something went wrong.protected void handleForceClose() throws java.sql.SQLException
java.sql.SQLException
protected boolean handleIsCached() throws java.sql.SQLException
java.sql.SQLException
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
method
is a method Statement.close()
. If yes, we notify owner
that this prepared statement was closed.invoke
in interface java.lang.reflect.InvocationHandler
proxy
- proxy on which method is invoked.method
- instance of Method
describing method being invoked.args
- array with arguments.java.lang.Throwable
- if invoked method threw an exception.protected void checkCorrectness(java.lang.reflect.Method method) throws java.sql.SQLException
PreparedStatement
class and there is no connection proxy
associated with this statement (i.e. statement in in pool), exception is
thrown (this situation usually happens if somebody tries to call method
on prepared statement after it has been closed).method
- method to check.java.sql.SQLException
- if statement has incorrect statement.Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.