org.enhydra.jdbc.standard
Class StandardXAStatefulConnection
java.lang.Object
|
+--org.enhydra.jdbc.standard.StandardXAStatefulConnection
- public class StandardXAStatefulConnection
- extends java.lang.Object
Provides a wrapper for a physical database connection. Each connection can be
associated with an XID and can be in one of several states depending on which
XAResource calls have been made against a given XID. This allows a StandardXAConnection
to multiplex between different XIDs by selecting the appropriate stateful
connection.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nextId
public static int nextId
id
public int id
con
public java.sql.Connection con
dataSource
public StandardXADataSource dataSource
commitOnPrepare
public boolean commitOnPrepare
StandardXAStatefulConnection
public StandardXAStatefulConnection(StandardXADataSource dataSource,
java.sql.Connection con)
- Creates a new stateful connection in the FREE state (NO_TRANSACTION)