|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.caucho.sql.QPooledConnection | +--com.caucho.sql.QXAPooledConnection
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 |
public void setAutoCommit(boolean autoCommit) throws java.sql.SQLException
public void commit() throws java.sql.SQLException
public void rollback() throws java.sql.SQLException
public boolean isSameRM(com.caucho.sql.XAResource resource) throws com.caucho.sql.XAException
public void start(com.caucho.sql.Xid xid, int flags) throws com.caucho.sql.XAException
public boolean setTransactionTimeout(int seconds) throws com.caucho.sql.XAException
public int getTransactionTimeout() throws com.caucho.sql.XAException
public void forget(com.caucho.sql.Xid xid) throws com.caucho.sql.XAException
public int prepare(com.caucho.sql.Xid xid) throws com.caucho.sql.XAException
public void rollback(com.caucho.sql.Xid xid) throws com.caucho.sql.XAException
public void commit(com.caucho.sql.Xid xid, boolean onePhase) throws com.caucho.sql.XAException
public com.caucho.sql.Xid[] recover(int flag) throws com.caucho.sql.XAException
public void end(com.caucho.sql.Xid xid, int flags) throws com.caucho.sql.XAException
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |