public class Transaction extends Object
Modifier and Type | Field and Description |
---|---|
protected static Localiser |
LOCALISER
Localisation utility for output messages
|
static int |
STATUS_ACTIVE |
static int |
STATUS_COMMITTED |
static int |
STATUS_COMMITTING |
static int |
STATUS_MARKED_ROLLBACK |
static int |
STATUS_NO_TRANSACTION |
static int |
STATUS_PREPARED |
static int |
STATUS_PREPARING |
static int |
STATUS_ROLLEDBACK |
static int |
STATUS_ROLLING_BACK |
static int |
STATUS_UNKNOWN |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
boolean |
delistResource(XAResource xaRes,
int flag) |
boolean |
enlistResource(XAResource xaRes) |
int |
getStatus() |
static String |
getXAErrorCode(Throwable xae) |
boolean |
isEnlisted(XAResource xaRes) |
void |
registerSynchronization(Synchronization sync) |
void |
rollback() |
void |
setRollbackOnly() |
String |
toString() |
public static final int STATUS_ACTIVE
public static final int STATUS_MARKED_ROLLBACK
public static final int STATUS_PREPARED
public static final int STATUS_COMMITTED
public static final int STATUS_ROLLEDBACK
public static final int STATUS_UNKNOWN
public static final int STATUS_NO_TRANSACTION
public static final int STATUS_PREPARING
public static final int STATUS_COMMITTING
public static final int STATUS_ROLLING_BACK
protected static final Localiser LOCALISER
public int getStatus() throws SystemException
SystemException
public boolean isEnlisted(XAResource xaRes)
public boolean enlistResource(XAResource xaRes) throws RollbackException, IllegalStateException, SystemException
public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException
IllegalStateException
SystemException
public void registerSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
public void rollback() throws IllegalStateException, SystemException
IllegalStateException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
IllegalStateException
SystemException
Copyright © 2019. All rights reserved.