Class SimpleTransaction
- java.lang.Object
-
- org.alfresco.repo.search.transaction.SimpleTransaction
-
- All Implemented Interfaces:
Transaction,Xid,XidTransaction
public class SimpleTransaction extends Object implements XidTransaction
-
-
Field Summary
Fields Modifier and Type Field Description static intFORMAT_ID-
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommit()booleandelistResource(XAResource arg0, int arg1)booleanenlistResource(XAResource arg0)booleanequals(Object o)byte[]getBranchQualifier()intgetFormatId()byte[]getGlobalTransactionId()StringgetGUID()intgetStatus()static SimpleTransactiongetTransaction()inthashCode()voidregisterSynchronization(Synchronization arg0)voidrollback()voidsetRollbackOnly()StringtoString()
-
-
-
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 RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException- Specified by:
commitin interfaceTransaction- Throws:
RollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionSystemException
-
delistResource
public boolean delistResource(XAResource arg0, int arg1) throws IllegalStateException, SystemException
- Specified by:
delistResourcein interfaceTransaction- Throws:
IllegalStateExceptionSystemException
-
enlistResource
public boolean enlistResource(XAResource arg0) throws RollbackException, IllegalStateException, SystemException
- Specified by:
enlistResourcein interfaceTransaction- Throws:
RollbackExceptionIllegalStateExceptionSystemException
-
getStatus
public int getStatus() throws SystemException- Specified by:
getStatusin interfaceTransaction- Throws:
SystemException
-
registerSynchronization
public void registerSynchronization(Synchronization arg0) throws RollbackException, IllegalStateException, SystemException
- Specified by:
registerSynchronizationin interfaceTransaction- Throws:
RollbackExceptionIllegalStateExceptionSystemException
-
rollback
public void rollback() throws IllegalStateException, SystemException- Specified by:
rollbackin interfaceTransaction- Throws:
IllegalStateExceptionSystemException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException, SystemException- Specified by:
setRollbackOnlyin interfaceTransaction- Throws:
IllegalStateExceptionSystemException
-
getGUID
public String getGUID()
-
getFormatId
public int getFormatId()
- Specified by:
getFormatIdin interfaceXid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionIdin interfaceXid
-
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifierin interfaceXid
-
-