Top Fields Constructors Methods
org.apache.derby.client

public Class ClientXAConnection

extends ClientPooledConnection
implements XAConnection
Class Inheritance
All Implemented Interfaces
javax.sql.XAConnection, javax.sql.PooledConnection
Imports
java.sql.Connection, .SQLException, javax.sql.XAConnection, javax.transaction.xa.XAResource, org.apache.derby.client.am.ClientMessageId, .LogWriter, .SqlException, org.apache.derby.client.net.NetXAConnection, .NetXAResource, org.apache.derby.shared.common.reference.SQLState

Field Summary

Modifier and TypeField and Description
private NetXAConnection
private boolean
private Connection
private NetXAResource
private static int
private XAResource
Inherited from org.apache.derby.client.ClientPooledConnection:
logWriter_netXAPhysicalConnection_physicalConnection_rmId_

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized void
close()

Overrides org.apache.derby.client.ClientPooledConnection.close.

Implements javax.sql.PooledConnection.close.

Closes the physical connection that this PooledConnection object represents.
public Connection
getConnection()

Overrides org.apache.derby.client.ClientPooledConnection.getConnection.

Implements javax.sql.PooledConnection.getConnection.

Creates and returns a Connection object that is a handle for the physical connection that this PooledConnection object represents.
public int
private static synchronized int
public XAResource
getXAResource()

Implements javax.sql.XAConnection.getXAResource.

Retrieves an XAResource object that the transaction manager will use to manage this XAConnection object's participation in a distributed transaction.
Inherited from org.apache.derby.client.ClientPooledConnection:
addConnectionEventListeneraddStatementEventListenerfinalizeinformListenersisStatementPoolingEnablednullLogicalConnectiononStatementCloseonStatementErrorOccurredrecycleConnectionremoveConnectionEventListenerremoveStatementEventListener

Field Detail

controlCon_back to summary
private NetXAConnection controlCon_
fFirstGetConnection_back to summary
private boolean fFirstGetConnection_
logicalCon_back to summary
private Connection logicalCon_
netXares_back to summary
private NetXAResource netXares_
rmIdSeed_back to summary
private static int rmIdSeed_
xares_back to summary
private XAResource xares_

Constructor Detail

ClientXAConnectionback to summary
public ClientXAConnection(BasicClientDataSource ds, LogWriter logWtr, String userId, String password) throws SQLException

Method Detail

closeback to summary
public synchronized void close() throws SQLException

Overrides org.apache.derby.client.ClientPooledConnection.close.

Implements javax.sql.PooledConnection.close.

Doc from javax.sql.PooledConnection.close.

Closes the physical connection that this PooledConnection object represents. An application never calls this method directly; it is called by the connection pool module, or manager.

See the interface description for more information.

Exceptions
SQLException:
if a database access error occurs
getConnectionback to summary
public Connection getConnection() throws SQLException

Overrides org.apache.derby.client.ClientPooledConnection.getConnection.

Implements javax.sql.PooledConnection.getConnection.

Doc from javax.sql.PooledConnection.getConnection.

Creates and returns a Connection object that is a handle for the physical connection that this PooledConnection object represents. The connection pool manager calls this method when an application has called the method DataSource.getConnection and there are no PooledConnection objects available. See the interface description for more information.

Returns:Connection

a Connection object that is a handle to this PooledConnection object

Exceptions
SQLException:
if a database access error occurs
getRmIdback to summary
public int getRmId()
getUnigueRmIdback to summary
private static synchronized int getUnigueRmId()
getXAResourceback to summary
public XAResource getXAResource() throws SQLException

Implements javax.sql.XAConnection.getXAResource.

Doc from javax.sql.XAConnection.getXAResource.

Retrieves an XAResource object that the transaction manager will use to manage this XAConnection object's participation in a distributed transaction.

Returns:XAResource

the XAResource object

Exceptions
SQLException:
if a database access error occurs