|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.postgresql.ds.jdbc23.AbstractJdbc23PooledConnection
org.postgresql.ds.jdbc4.AbstractJdbc4PooledConnection
org.postgresql.ds.PGPooledConnection
org.postgresql.xa.PGXAConnection
public class PGXAConnection
The PostgreSQL implementation of XAResource.
This implementation doesn't support transaction interleaving
(see JTA specification, section 3.4.4) and suspend/resume.
Two-phase commit requires PostgreSQL server version 8.1
or higher.
| Field Summary |
|---|
| Fields inherited from interface javax.transaction.xa.XAResource |
|---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| Constructor Summary | |
|---|---|
PGXAConnection(BaseConnection conn)
|
|
| Method Summary | |
|---|---|
void |
commit(Xid xid,
boolean onePhase)
|
void |
end(Xid xid,
int flags)
Preconditions: 1. |
void |
forget(Xid xid)
Does nothing, since we don't do heuristics, |
Connection |
getConnection()
XAConnection interface |
int |
getTransactionTimeout()
We don't do transaction timeouts. |
XAResource |
getXAResource()
|
boolean |
isSameRM(XAResource xares)
|
int |
prepare(Xid xid)
Preconditions: 1. |
Xid[] |
recover(int flag)
Preconditions: 1. |
void |
rollback(Xid xid)
Preconditions: 1. |
boolean |
setTransactionTimeout(int seconds)
We don't do transaction timeouts. |
void |
start(Xid xid,
int flags)
Preconditions: 1. |
| Methods inherited from class org.postgresql.ds.PGPooledConnection |
|---|
createConnectionEvent |
| Methods inherited from class org.postgresql.ds.jdbc4.AbstractJdbc4PooledConnection |
|---|
addStatementEventListener, getParentLogger, removeStatementEventListener |
| Methods inherited from class org.postgresql.ds.jdbc23.AbstractJdbc23PooledConnection |
|---|
addConnectionEventListener, close, removeConnectionEventListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.sql.PooledConnection |
|---|
addConnectionEventListener, addStatementEventListener, close, removeConnectionEventListener, removeStatementEventListener |
| Constructor Detail |
|---|
public PGXAConnection(BaseConnection conn)
throws SQLException
SQLException| Method Detail |
|---|
public Connection getConnection()
throws SQLException
getConnection in interface PooledConnectiongetConnection in class AbstractJdbc23PooledConnectionSQLExceptionpublic XAResource getXAResource()
getXAResource in interface XAConnection
public void start(Xid xid,
int flags)
throws XAException
start in interface XAResourceXAException
public void end(Xid xid,
int flags)
throws XAException
end in interface XAResourceXAException
public int prepare(Xid xid)
throws XAException
prepare in interface XAResourceXAException
public Xid[] recover(int flag)
throws XAException
recover in interface XAResourceXAException
public void rollback(Xid xid)
throws XAException
rollback in interface XAResourceXAException
public void commit(Xid xid,
boolean onePhase)
throws XAException
commit in interface XAResourceXAException
public boolean isSameRM(XAResource xares)
throws XAException
isSameRM in interface XAResourceXAException
public void forget(Xid xid)
throws XAException
forget in interface XAResourceXAExceptionpublic int getTransactionTimeout()
getTransactionTimeout in interface XAResourcepublic boolean setTransactionTimeout(int seconds)
setTransactionTimeout in interface XAResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||