org.datanucleus.transaction
Class Transaction

java.lang.Object
  extended by org.datanucleus.transaction.Transaction

public class Transaction
extends java.lang.Object

Transaction The Global Transaction ID is formed as: TX---


Field Summary
protected static Localiser LOCALISER
          Localisation utility for output messages
 
Method Summary
 void commit()
           
 boolean delistResource(javax.transaction.xa.XAResource xaRes, int flag)
           
 boolean enlistResource(javax.transaction.xa.XAResource xaRes)
           
 int getStatus()
           
static java.lang.String getXAErrorCode(java.lang.Throwable xae)
           
 void registerSynchronization(javax.transaction.Synchronization sync)
           
 void rollback()
           
 void setRollbackOnly()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCALISER

protected static final Localiser LOCALISER
Localisation utility for output messages

Method Detail

commit

public void commit()
            throws RollbackException,
                   HeuristicMixedException,
                   HeuristicRollbackException,
                   java.lang.SecurityException,
                   java.lang.IllegalStateException,
                   org.omg.CORBA.SystemException
Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
java.lang.SecurityException
java.lang.IllegalStateException
org.omg.CORBA.SystemException

delistResource

public boolean delistResource(javax.transaction.xa.XAResource xaRes,
                              int flag)
                       throws java.lang.IllegalStateException,
                              org.omg.CORBA.SystemException
Throws:
java.lang.IllegalStateException
org.omg.CORBA.SystemException

enlistResource

public boolean enlistResource(javax.transaction.xa.XAResource xaRes)
                       throws RollbackException,
                              java.lang.IllegalStateException,
                              org.omg.CORBA.SystemException
Throws:
RollbackException
java.lang.IllegalStateException
org.omg.CORBA.SystemException

getStatus

public int getStatus()
              throws org.omg.CORBA.SystemException
Throws:
org.omg.CORBA.SystemException

registerSynchronization

public void registerSynchronization(javax.transaction.Synchronization sync)
                             throws RollbackException,
                                    java.lang.IllegalStateException,
                                    org.omg.CORBA.SystemException
Throws:
RollbackException
java.lang.IllegalStateException
org.omg.CORBA.SystemException

rollback

public void rollback()
              throws java.lang.IllegalStateException,
                     org.omg.CORBA.SystemException
Throws:
java.lang.IllegalStateException
org.omg.CORBA.SystemException

setRollbackOnly

public void setRollbackOnly()
                     throws java.lang.IllegalStateException,
                            org.omg.CORBA.SystemException
Throws:
java.lang.IllegalStateException
org.omg.CORBA.SystemException

getXAErrorCode

public static java.lang.String getXAErrorCode(java.lang.Throwable xae)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.