org.firebirdsql.ds
Class FBXAConnection

java.lang.Object
  extended by org.firebirdsql.ds.AbstractPooledConnection
      extended by org.firebirdsql.ds.FBPooledConnection
          extended by org.firebirdsql.ds.FBXAConnection
All Implemented Interfaces:
javax.sql.PooledConnection, javax.sql.XAConnection

public class FBXAConnection
extends FBPooledConnection
implements javax.sql.XAConnection

XAConnection implementation for FBXADataSource

Since:
2.2
Author:
Mark Rotteveel

Field Summary
 
Fields inherited from class org.firebirdsql.ds.AbstractPooledConnection
connection, handler
 
Constructor Summary
FBXAConnection(AbstractConnection connection)
           
 
Method Summary
protected  org.firebirdsql.ds.PooledConnectionHandler createConnectionHandler()
          Creates the PooledConnectionHandler for the connection.
 javax.transaction.xa.XAResource getXAResource()
           
protected  boolean inDistributedTransaction()
           
protected  void resetConnection()
           
 
Methods inherited from class org.firebirdsql.ds.FBPooledConnection
addStatementEventListener, removeStatementEventListener
 
Methods inherited from class org.firebirdsql.ds.AbstractPooledConnection
addConnectionEventListener, close, fireConnectionClosed, fireConnectionError, fireFatalConnectionError, getConnection, releaseConnectionHandler, removeConnectionEventListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.sql.PooledConnection
addConnectionEventListener, addStatementEventListener, close, getConnection, removeConnectionEventListener, removeStatementEventListener
 

Constructor Detail

FBXAConnection

public FBXAConnection(AbstractConnection connection)
Method Detail

getXAResource

public javax.transaction.xa.XAResource getXAResource()
                                              throws java.sql.SQLException
Specified by:
getXAResource in interface javax.sql.XAConnection
Throws:
java.sql.SQLException

resetConnection

protected void resetConnection()
                        throws java.sql.SQLException
Overrides:
resetConnection in class AbstractPooledConnection
Throws:
java.sql.SQLException

createConnectionHandler

protected org.firebirdsql.ds.PooledConnectionHandler createConnectionHandler()
Description copied from class: AbstractPooledConnection
Creates the PooledConnectionHandler for the connection.

Subclasses may override this method to return their own subclass of PooledConnectionHandler.

Overrides:
createConnectionHandler in class AbstractPooledConnection
Returns:
PooledConnectionHandler

inDistributedTransaction

protected boolean inDistributedTransaction()
                                    throws java.sql.SQLException
Throws:
java.sql.SQLException


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