Each instance has an JDBCXAResource inherits the superclass's two JDBCConnection objects, one for internal access, and one for user access.
The getConnection() method returns a user connection and links this with the JDBCXAResource. This puts the object in the inUse state. When the user connection is closed, the object is put in the free state.
javax.sql.XAConnection
| Modifier and Type | Field and Description |
|---|---|
| pack-priv JDBCXAResource |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements javax. Closes the physical connection that this |
| public synchronized Connection | Returns: ConnectionOverrides org. Implements javax. Returns a connection that can be used by the user application. |
| public XAResource | getXAResource()
Implements javax. Retrieves an |
| xaResource | back to summary |
|---|---|
| pack-priv JDBCXAResource xaResource | |
| JDBCXAConnection | back to summary |
|---|---|
| public JDBCXAConnection(JDBCXADataSource dataSource, JDBCConnection connection) | |
| close | back to summary |
|---|---|
| public void close() throws SQLException Overrides org. Implements javax. Doc from javax. Closes the physical connection that this
See the
| |
| getConnection | back to summary |
|---|---|
| public synchronized Connection getConnection() throws SQLException Overrides org. Implements javax. Returns a connection that can be used by the user application.
| |
| getXAResource | back to summary |
|---|---|
| public XAResource getXAResource() throws SQLException Implements javax. Doc from javax. Retrieves an
| |