tyrex.resource.jdbc.xa
final class ClientConnection extends TyrexConnection implements Connection
Version: 1.0
See Also: XAConnectionImpl XADataSourceImpl Connection
| Constructor Summary | |
|---|---|
| ClientConnection(XAConnectionImpl xaConn, XADataSourceImpl xaDataSource, int clientId)
Construct a new client connection to provide access to the
underlying JDBC connection (underlying) on behalf of
an XA/pooled connection (xaConn). | |
| Method Summary | |
|---|---|
| void | commit() |
| boolean | getAutoCommit() |
| protected void | internalClose() |
| protected Connection | internalGetUnderlyingConnection()
Called to retrieve the underlying JDBC connection. |
| boolean | isClosed() |
| protected void | notifyError(SQLException except)
Called when an exception is thrown by the underlying connection
to determine whether the exception is critical or not. |
| void | rollback() |
| void | setAutoCommit(boolean autoCommit) |
| String | toString()
Called by XAConnectionImpl to terminate this connection
by dissociating it from the underlying JDBC connection.
|
Parameters: xaConn The XA/pooled connection that created this client connection xaDataSource the data source that created the xaConn clientId A unique identifier handed to us by XAConnection underlying The underlying JDBC connection
Parameters: except The exception thrown by the underlying connection