org.enhydra.jdbc.standard
Class StandardXAStatefulConnection

java.lang.Object
  extended byorg.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.


Field Summary
 boolean commitOnPrepare
           
 java.sql.Connection con
           
 StandardXADataSource dataSource
           
 int id
           
static int nextId
           
 
Constructor Summary
StandardXAStatefulConnection(StandardXADataSource dataSource, java.sql.Connection con)
          Creates a new stateful connection in the FREE state (NO_TRANSACTION)
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nextId

public static int nextId

id

public int id

con

public java.sql.Connection con

dataSource

public StandardXADataSource dataSource

commitOnPrepare

public boolean commitOnPrepare
Constructor Detail

StandardXAStatefulConnection

public StandardXAStatefulConnection(StandardXADataSource dataSource,
                                    java.sql.Connection con)
Creates a new stateful connection in the FREE state (NO_TRANSACTION)

Method Detail

toString

public java.lang.String toString()