public class SimpleTransaction extends Object implements XidTransaction
| Modifier and Type | Field and Description |
|---|---|
static int |
FORMAT_ID |
MAXBQUALSIZE, MAXGTRIDSIZE| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
boolean |
delistResource(XAResource arg0,
int arg1) |
boolean |
enlistResource(XAResource arg0) |
boolean |
equals(Object o) |
byte[] |
getBranchQualifier() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
String |
getGUID() |
int |
getStatus() |
static SimpleTransaction |
getTransaction() |
int |
hashCode() |
void |
registerSynchronization(Synchronization arg0) |
void |
rollback() |
void |
setRollbackOnly() |
String |
toString() |
public static final int FORMAT_ID
public static SimpleTransaction getTransaction()
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
SystemException
commit in interface TransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionSystemExceptionpublic boolean delistResource(XAResource arg0, int arg1) throws IllegalStateException, SystemException
delistResource in interface TransactionIllegalStateExceptionSystemExceptionpublic boolean enlistResource(XAResource arg0) throws RollbackException, IllegalStateException, SystemException
enlistResource in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionSystemExceptionpublic void registerSynchronization(Synchronization arg0) throws RollbackException, IllegalStateException, SystemException
registerSynchronization in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SystemException
rollback in interface TransactionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionIllegalStateExceptionSystemExceptionpublic String getGUID()
public int getFormatId()
getFormatId in interface Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface XidCopyright © 2005–2018 Alfresco Software. All rights reserved.