org.datanucleus.jdo.connector
Class ConnectionXAResource

java.lang.Object
  extended by org.datanucleus.jdo.connector.ConnectionXAResource
All Implemented Interfaces:
javax.transaction.xa.XAResource

public class ConnectionXAResource
extends java.lang.Object
implements javax.transaction.xa.XAResource

XAResource for the Connector. It is enlisted in the XA transaction when the JPOX Connector is allocated by the Application Server


Field Summary
 
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
Method Summary
 void commit(javax.transaction.xa.Xid xid, boolean flags)
           
 void end(javax.transaction.xa.Xid xid, int flags)
           
 void forget(javax.transaction.xa.Xid xid)
           
 int getTransactionTimeout()
           
 void internalCommit(org.datanucleus.jdo.JDOPersistenceManager pm)
          Method to commit the Transaction
 void internalRollback(org.datanucleus.jdo.JDOPersistenceManager pm)
          Method to rollback the Transaction
 void internalStart(org.datanucleus.jdo.JDOPersistenceManager pm)
          Method to start the Transaction
 boolean isSameRM(javax.transaction.xa.XAResource xares)
           
 int prepare(javax.transaction.xa.Xid xid)
           
 javax.transaction.xa.Xid[] recover(int flags)
           
 void rollback(javax.transaction.xa.Xid xid)
           
 boolean setTransactionTimeout(int seconds)
           
 void start(javax.transaction.xa.Xid xid, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

commit

public void commit(javax.transaction.xa.Xid xid,
                   boolean flags)
            throws javax.transaction.xa.XAException
Specified by:
commit in interface javax.transaction.xa.XAResource
Throws:
javax.transaction.xa.XAException

internalCommit

public void internalCommit(org.datanucleus.jdo.JDOPersistenceManager pm)
Method to commit the Transaction


end

public void end(javax.transaction.xa.Xid xid,
                int flags)
         throws javax.transaction.xa.XAException
Specified by:
end in interface javax.transaction.xa.XAResource
Throws:
javax.transaction.xa.XAException

forget

public void forget(javax.transaction.xa.Xid xid)
            throws javax.transaction.xa.XAException
Specified by:
forget in interface javax.transaction.xa.XAResource
Throws:
javax.transaction.xa.XAException

getTransactionTimeout

public int getTransactionTimeout()
                          throws javax.transaction.xa.XAException
Specified by:
getTransactionTimeout in interface javax.transaction.xa.XAResource
Throws:
javax.transaction.xa.XAException

isSameRM

public boolean isSameRM(javax.transaction.xa.XAResource xares)
                 throws javax.transaction.xa.XAException
Specified by:
isSameRM in interface javax.transaction.xa.XAResource
Throws:
javax.transaction.xa.XAException

prepare

public int prepare(javax.transaction.xa.Xid xid)
            throws javax.transaction.xa.XAException
Specified by:
prepare in interface javax.transaction.xa.XAResource
Throws:
javax.transaction.xa.XAException

recover

public javax.transaction.xa.Xid[] recover(int flags)
                                   throws javax.transaction.xa.XAException
Specified by:
recover in interface javax.transaction.xa.XAResource
Throws:
javax.transaction.xa.XAException

rollback

public void rollback(javax.transaction.xa.Xid xid)
              throws javax.transaction.xa.XAException
Specified by:
rollback in interface javax.transaction.xa.XAResource
Throws:
javax.transaction.xa.XAException

internalRollback

public void internalRollback(org.datanucleus.jdo.JDOPersistenceManager pm)
Method to rollback the Transaction


setTransactionTimeout

public boolean setTransactionTimeout(int seconds)
                              throws javax.transaction.xa.XAException
Specified by:
setTransactionTimeout in interface javax.transaction.xa.XAResource
Throws:
javax.transaction.xa.XAException

start

public void start(javax.transaction.xa.Xid xid,
                  int flags)
           throws javax.transaction.xa.XAException
Specified by:
start in interface javax.transaction.xa.XAResource
Throws:
javax.transaction.xa.XAException

internalStart

public void internalStart(org.datanucleus.jdo.JDOPersistenceManager pm)
Method to start the Transaction



Copyright © 2009. All Rights Reserved.