org.firebirdsql.jca
Class FBXAConnectionHandle

java.lang.Object
  extended by org.firebirdsql.jca.FBXAConnectionHandle
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

Deprecated.

public class FBXAConnectionHandle
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Simple Connection wrapper returned by FBXAConnection.

Author:
Ludovic Orban

Constructor Summary
FBXAConnectionHandle(AbstractConnection connection, javax.sql.XAConnection owner)
          Deprecated. Construct instance of this class.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FBXAConnectionHandle

public FBXAConnectionHandle(AbstractConnection connection,
                            javax.sql.XAConnection owner)
                     throws java.sql.SQLException
Deprecated. 
Construct instance of this class. This method constructs new proxy that implements Connection interface and uses newly constructed object as invocation handler.

Parameters:
connection - connection to wrap.
owner - instance of XAConnection that owns this connection instance.
Throws:
java.sql.SQLException - if something went wrong during initialization.
Method Detail

getProxy

public java.sql.Connection getProxy()
Deprecated. 
Get proxy implementing Connection interface and using this instance as invocation handler.

Returns:
instance of Connection.

getXAConnection

public javax.sql.XAConnection getXAConnection()
Deprecated. 
Get manager of this connection wrapper.

Returns:
instance of XAConnection.

handleConnectionClose

public void handleConnectionClose()
                           throws java.sql.SQLException
Deprecated. 
Throws:
java.sql.SQLException

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Deprecated. 
Invoke method on a specified proxy. Here we check if 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.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Parameters:
proxy - proxy on which method is invoked.
method - instance of Method describing method being invoked.
args - array with arguments.
Returns:
result of method invokation.
Throws:
java.lang.Throwable - if invoked method threw an exception.


Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.