public class FBXAConnectionHandle
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Constructor and Description |
|---|
FBXAConnectionHandle(AbstractConnection connection,
javax.sql.XAConnection owner)
Deprecated.
Construct instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getProxy()
Deprecated.
Get proxy implementing
Connection interface and using this
instance as invocation handler. |
javax.sql.XAConnection |
getXAConnection()
Deprecated.
Get manager of this connection wrapper.
|
void |
handleConnectionClose()
Deprecated.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Deprecated.
Invoke method on a specified proxy.
|
public FBXAConnectionHandle(AbstractConnection connection, javax.sql.XAConnection owner) throws java.sql.SQLException
Connection interface and uses newly constructed
object as invocation handler.connection - connection to wrap.owner - instance of XAConnection that owns this
connection instance.java.sql.SQLException - if something went wrong during initialization.public java.sql.Connection getProxy()
Connection interface and using this
instance as invocation handler.Connection.public javax.sql.XAConnection getXAConnection()
XAConnection.public void handleConnectionClose()
throws java.sql.SQLException
java.sql.SQLExceptionpublic 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 Connection.prepareStatement(String). If yes, we check
if there is already a prepared statement for the wrapped connection or
wrap a newly created one.invoke in interface java.lang.reflect.InvocationHandlerproxy - 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.Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.