org.enhydra.jdbc.standard
Class StandardXAStatefulConnection
java.lang.Object
org.enhydra.jdbc.standard.StandardXAStatefulConnection
- Direct Known Subclasses:
- InformixXAStatefulConnection, SybaseXAStatefulConnection
- 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.
Method Summary |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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)
toString
public java.lang.String toString()