Package org.firebirdsql.ds
Class FBXAConnection
- java.lang.Object
- 
- org.firebirdsql.ds.FBPooledConnection
- 
- org.firebirdsql.ds.FBXAConnection
 
 
- 
- All Implemented Interfaces:
- javax.sql.PooledConnection,- javax.sql.XAConnection
 
 public class FBXAConnection extends FBPooledConnection implements javax.sql.XAConnection XAConnection implementation forFBXADataSource- Since:
- 2.2
- Author:
- Mark Rotteveel
 
- 
- 
Constructor SummaryConstructors Constructor Description FBXAConnection(FBConnection connection)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.firebirdsql.ds.PooledConnectionHandlercreateConnectionHandler(java.sql.Connection connection)Creates the PooledConnectionHandler for the connection.javax.transaction.xa.XAResourcegetXAResource()protected booleaninDistributedTransaction()protected voidresetConnection(java.sql.Connection connection)- 
Methods inherited from class org.firebirdsql.ds.FBPooledConnectionaddConnectionEventListener, addStatementEventListener, close, fireConnectionClosed, fireConnectionError, fireFatalConnectionError, getConnection, releaseConnectionHandler, removeConnectionEventListener, removeStatementEventListener
 
- 
 
- 
- 
- 
Constructor Detail- 
FBXAConnectionpublic FBXAConnection(FBConnection connection) 
 
- 
 - 
Method Detail- 
getXAResourcepublic javax.transaction.xa.XAResource getXAResource() throws java.sql.SQLException- Specified by:
- getXAResourcein interface- javax.sql.XAConnection
- Throws:
- java.sql.SQLException
 
 - 
resetConnectionprotected void resetConnection(java.sql.Connection connection) throws java.sql.SQLException- Overrides:
- resetConnectionin class- FBPooledConnection
- Throws:
- java.sql.SQLException
 
 - 
createConnectionHandlerprotected org.firebirdsql.ds.PooledConnectionHandler createConnectionHandler(java.sql.Connection connection) Description copied from class:FBPooledConnectionCreates the PooledConnectionHandler for the connection.Subclasses may override this method to return their own subclass of PooledConnectionHandler. - Overrides:
- createConnectionHandlerin class- FBPooledConnection
- Parameters:
- connection- Connection
- Returns:
- PooledConnectionHandler
 
 - 
inDistributedTransactionprotected boolean inDistributedTransaction() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 
- 
 
-