public class JtdsXAConnection extends PooledConnection implements javax.sql.XAConnection
XAConnection interface.| Modifier and Type | Field and Description | 
|---|---|
| private JtdsDataSource | dataSource | 
| private javax.transaction.xa.XAResource | resourceThe XAResource used by the transaction manager to control this connection. | 
| private int | xaConnectionId | 
connection| Constructor and Description | 
|---|
| JtdsXAConnection(JtdsDataSource dataSource,
                java.sql.Connection connection)Construct a new  XAConnectionobject. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Closes the database connection. | 
| (package private) int | getXAConnectionID()Retrieves the XA Connection ID to pass to server. | 
| protected JtdsDataSource | getXADataSource() | 
| javax.transaction.xa.XAResource | getXAResource() | 
addConnectionEventListener, addStatementEventListener, fireConnectionEvent, getConnection, removeConnectionEventListener, removeStatementEventListenerprivate final javax.transaction.xa.XAResource resource
private final JtdsDataSource dataSource
private final int xaConnectionId
public JtdsXAConnection(JtdsDataSource dataSource, java.sql.Connection connection) throws java.sql.SQLException
XAConnection object.dataSource - the parent DataSource objectconnection - the real database connectionjava.sql.SQLExceptionint getXAConnectionID()
Integerpublic javax.transaction.xa.XAResource getXAResource()
                                              throws java.sql.SQLException
getXAResource in interface javax.sql.XAConnectionjava.sql.SQLExceptionpublic void close()
           throws java.sql.SQLException
PooledConnectionclose in interface javax.sql.PooledConnectionclose in class PooledConnectionjava.sql.SQLException - if an error occursprotected JtdsDataSource getXADataSource()
Generated on June 8 2013