com.caucho.sql
Class QXAPooledConnection

com.caucho.sql.QPooledConnection
  |
  +--com.caucho.sql.QXAPooledConnection

public class QXAPooledConnection
extends QPooledConnection

Represents a single pooled connection. For the most part, it just passes the requests to the underlying JDBC connection.

Closing the connection will return the real connection to the pool and close any statements.


Fields inherited from class com.caucho.sql.QPooledConnection
conn, dbg, L, pool
 
Method Summary
 void commit()
           
 void commit(com.caucho.sql.Xid xid, boolean onePhase)
          commit the resource
 void end(com.caucho.sql.Xid xid, int flags)
          ends work with the resource
 void forget(com.caucho.sql.Xid xid)
          forget about the transaction
 int getTransactionTimeout()
           
 boolean isSameRM(com.caucho.sql.XAResource resource)
          identity of resources
 int prepare(com.caucho.sql.Xid xid)
          Vote using phase-1 of the 2-phase commit.
 com.caucho.sql.Xid[] recover(int flag)
          recover the transaction
 void rollback()
           
 void rollback(com.caucho.sql.Xid xid)
          rollback the resource
 void setAutoCommit(boolean autoCommit)
           
 boolean setTransactionTimeout(int seconds)
          sets the transaction timeout
 void start(com.caucho.sql.Xid xid, int flags)
          starts work on a transaction branch
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.sql.QPooledConnection
addConnectionEventListener, close, getConnection, removeConnectionEventListener
 

Method Detail

setAutoCommit

public void setAutoCommit(boolean autoCommit)
                   throws java.sql.SQLException

commit

public void commit()
            throws java.sql.SQLException

rollback

public void rollback()
              throws java.sql.SQLException

isSameRM

public boolean isSameRM(com.caucho.sql.XAResource resource)
                 throws com.caucho.sql.XAException
identity of resources

start

public void start(com.caucho.sql.Xid xid,
                  int flags)
           throws com.caucho.sql.XAException
starts work on a transaction branch

setTransactionTimeout

public boolean setTransactionTimeout(int seconds)
                              throws com.caucho.sql.XAException
sets the transaction timeout

getTransactionTimeout

public int getTransactionTimeout()
                          throws com.caucho.sql.XAException

forget

public void forget(com.caucho.sql.Xid xid)
            throws com.caucho.sql.XAException
forget about the transaction

prepare

public int prepare(com.caucho.sql.Xid xid)
            throws com.caucho.sql.XAException
Vote using phase-1 of the 2-phase commit.

rollback

public void rollback(com.caucho.sql.Xid xid)
              throws com.caucho.sql.XAException
rollback the resource

commit

public void commit(com.caucho.sql.Xid xid,
                   boolean onePhase)
            throws com.caucho.sql.XAException
commit the resource

recover

public com.caucho.sql.Xid[] recover(int flag)
                             throws com.caucho.sql.XAException
recover the transaction

end

public void end(com.caucho.sql.Xid xid,
                int flags)
         throws com.caucho.sql.XAException
ends work with the resource

toString

public java.lang.String toString()