org.alfresco.repo.search.transaction
Class SimpleTransaction

java.lang.Object
  extended by org.alfresco.repo.search.transaction.SimpleTransaction
All Implemented Interfaces:
javax.transaction.Transaction, javax.transaction.xa.Xid, XidTransaction

public class SimpleTransaction
extends java.lang.Object
implements XidTransaction


Field Summary
static int FORMAT_ID
           
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Method Summary
 void commit()
           
 boolean delistResource(javax.transaction.xa.XAResource arg0, int arg1)
           
 boolean enlistResource(javax.transaction.xa.XAResource arg0)
           
 boolean equals(java.lang.Object o)
           
 byte[] getBranchQualifier()
           
 int getFormatId()
           
 byte[] getGlobalTransactionId()
           
 java.lang.String getGUID()
           
 int getStatus()
           
static SimpleTransaction getTransaction()
           
 int hashCode()
           
 void registerSynchronization(javax.transaction.Synchronization arg0)
           
 void rollback()
           
 void setRollbackOnly()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FORMAT_ID

public static final int FORMAT_ID
See Also:
Constant Field Values
Method Detail

getTransaction

public static SimpleTransaction getTransaction()

commit

public void commit()
            throws javax.transaction.RollbackException,
                   javax.transaction.HeuristicMixedException,
                   javax.transaction.HeuristicRollbackException,
                   java.lang.SecurityException,
                   javax.transaction.SystemException
Specified by:
commit in interface javax.transaction.Transaction
Throws:
javax.transaction.RollbackException
javax.transaction.HeuristicMixedException
javax.transaction.HeuristicRollbackException
java.lang.SecurityException
javax.transaction.SystemException

delistResource

public boolean delistResource(javax.transaction.xa.XAResource arg0,
                              int arg1)
                       throws java.lang.IllegalStateException,
                              javax.transaction.SystemException
Specified by:
delistResource in interface javax.transaction.Transaction
Throws:
java.lang.IllegalStateException
javax.transaction.SystemException

enlistResource

public boolean enlistResource(javax.transaction.xa.XAResource arg0)
                       throws javax.transaction.RollbackException,
                              java.lang.IllegalStateException,
                              javax.transaction.SystemException
Specified by:
enlistResource in interface javax.transaction.Transaction
Throws:
javax.transaction.RollbackException
java.lang.IllegalStateException
javax.transaction.SystemException

getStatus

public int getStatus()
              throws javax.transaction.SystemException
Specified by:
getStatus in interface javax.transaction.Transaction
Throws:
javax.transaction.SystemException

registerSynchronization

public void registerSynchronization(javax.transaction.Synchronization arg0)
                             throws javax.transaction.RollbackException,
                                    java.lang.IllegalStateException,
                                    javax.transaction.SystemException
Specified by:
registerSynchronization in interface javax.transaction.Transaction
Throws:
javax.transaction.RollbackException
java.lang.IllegalStateException
javax.transaction.SystemException

rollback

public void rollback()
              throws java.lang.IllegalStateException,
                     javax.transaction.SystemException
Specified by:
rollback in interface javax.transaction.Transaction
Throws:
java.lang.IllegalStateException
javax.transaction.SystemException

setRollbackOnly

public void setRollbackOnly()
                     throws java.lang.IllegalStateException,
                            javax.transaction.SystemException
Specified by:
setRollbackOnly in interface javax.transaction.Transaction
Throws:
java.lang.IllegalStateException
javax.transaction.SystemException

getGUID

public java.lang.String getGUID()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

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

getFormatId

public int getFormatId()
Specified by:
getFormatId in interface javax.transaction.xa.Xid

getGlobalTransactionId

public byte[] getGlobalTransactionId()
Specified by:
getGlobalTransactionId in interface javax.transaction.xa.Xid

getBranchQualifier

public byte[] getBranchQualifier()
Specified by:
getBranchQualifier in interface javax.transaction.xa.Xid


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.