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 Transaction
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
SystemException
public boolean delistResource(XAResource arg0, int arg1) throws IllegalStateException, SystemException
delistResource
in interface Transaction
IllegalStateException
SystemException
public boolean enlistResource(XAResource arg0) throws RollbackException, IllegalStateException, SystemException
enlistResource
in interface Transaction
RollbackException
IllegalStateException
SystemException
public int getStatus() throws SystemException
getStatus
in interface Transaction
SystemException
public void registerSynchronization(Synchronization arg0) throws RollbackException, IllegalStateException, SystemException
registerSynchronization
in interface Transaction
RollbackException
IllegalStateException
SystemException
public void rollback() throws IllegalStateException, SystemException
rollback
in interface Transaction
IllegalStateException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface Transaction
IllegalStateException
SystemException
public String getGUID()
public int getFormatId()
getFormatId
in interface Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface Xid
Copyright © 2005–2017 Alfresco Software. All rights reserved.