org.enhydra.jdbc.standard
Class StandardXAStatefulConnection
java.lang.Object
org.enhydra.jdbc.standard.StandardXAStatefulConnection
- Direct Known Subclasses:
- InformixXAStatefulConnection, SybaseXAStatefulConnection
public class StandardXAStatefulConnection
- extends 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.
nextId
public static int nextId
id
public int id
con
public Connection con
dataSource
public StandardXADataSource dataSource
commitOnPrepare
public boolean commitOnPrepare
StandardXAStatefulConnection
public StandardXAStatefulConnection(StandardXADataSource dataSource,
Connection con)
- Creates a new stateful connection in the FREE state (NO_TRANSACTION)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011. All Rights Reserved.