net.sourceforge.jtds.jdbcx
Class JtdsXAConnection
- javax.sql.PooledConnection, XAConnection
public class JtdsXAConnection
implements XAConnection
jTDS implementation of the XAConnection interface.
$Id: JtdsXAConnection.java,v 1.4 2005/04/28 14:29:30 alin_sinpalean Exp $
resource
private final XAResource resource
The XAResource used by the transaction manager to control this connection.
xaConnectionId
private final int xaConnectionId
JtdsXAConnection
public JtdsXAConnection(JtdsDataSource dataSource,
Connection connection)
throws SQLException Construct a new XAConnection object.
dataSource - the parent DataSource objectconnection - the real database connection
close
public void close()
throws SQLException Closes the database connection.
- close in interface PooledConnection
getXAConnectionID
(package private) int getXAConnectionID()
Retrieves the XA Connection ID to pass to server.
- the XA connection ID as an
Integer
getXAResource
public XAResource getXAResource()
throws SQLException
Generated on June 12 2008