Class ClientXAConnection
java.lang.Object
org.apache.derby.client.ClientPooledConnection
org.apache.derby.client.ClientXAConnection
- All Implemented Interfaces:
PooledConnection, XAConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NetXAConnectionprivate booleanprivate Connectionprivate NetXAResourceprivate static intprivate XAResourceFields inherited from class ClientPooledConnection
logWriter_, netXAPhysicalConnection_, physicalConnection_, rmId_ -
Constructor Summary
ConstructorsConstructorDescriptionClientXAConnection(BasicClientDataSource40 ds, LogWriter logWtr, String userId, String password) -
Method Summary
Methods inherited from class ClientPooledConnection
addConnectionEventListener, addStatementEventListener, finalize, informListeners, isStatementPoolingEnabled, nullLogicalConnection, onStatementClose, onStatementErrorOccurred, recycleConnection, removeConnectionEventListener, removeStatementEventListenerMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PooledConnection
addConnectionEventListener, addStatementEventListener, removeConnectionEventListener, removeStatementEventListener
-
Field Details
-
rmIdSeed_
private static int rmIdSeed_ -
xares_
-
netXares_
-
fFirstGetConnection_
private boolean fFirstGetConnection_ -
logicalCon_
-
controlCon_
-
-
Constructor Details
-
ClientXAConnection
public ClientXAConnection(BasicClientDataSource40 ds, LogWriter logWtr, String userId, String password) throws SQLException - Throws:
SQLException
-
-
Method Details
-
getConnection
Description copied from class:ClientPooledConnectionCreates a logical connection.This is the standard API for getting a logical connection handle for a pooled connection. No "resettable" properties are passed, so user, password, and all other properties may not change.
- Specified by:
getConnectionin interfacePooledConnection- Overrides:
getConnectionin classClientPooledConnection- Throws:
SQLException- if creating a new logical connection fails
-
getUnigueRmId
private static int getUnigueRmId() -
getRmId
public int getRmId() -
getXAResource
- Specified by:
getXAResourcein interfaceXAConnection- Throws:
SQLException
-
close
Description copied from class:ClientPooledConnectionCloses the physical connection to the data source and frees all associated resources.- Specified by:
closein interfacePooledConnection- Overrides:
closein classClientPooledConnection- Throws:
SQLException- if closing the connection causes an error. Note that this connection can still be considered closed even if an error occurs.
-