|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.transaction.AbstractTransaction
This base class provides low level features for transactions
Field Summary | |
protected Log |
logger
|
Fields inherited from interface org.mule.umo.UMOTransaction |
STATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN |
Constructor Summary | |
AbstractTransaction()
|
Method Summary | |
void |
begin()
Begin the transaction. |
void |
commit()
Commit the transaction |
protected abstract void |
doBegin()
Really begin the transaction. |
protected abstract void |
doCommit()
Commit the transaction on the underlying resource |
protected abstract void |
doRollback()
Rollback the transaction on the underlying resource |
boolean |
isBegun()
|
boolean |
isCommitted()
|
boolean |
isRollbackOnly()
|
boolean |
isRolledBack()
|
void |
rollback()
Rollback the transaction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mule.umo.UMOTransaction |
bindResource, getResource, getStatus, hasResource, setRollbackOnly |
Field Detail |
protected final transient Log logger
Constructor Detail |
public AbstractTransaction()
Method Detail |
public boolean isRollbackOnly() throws UMOTransactionException
isRollbackOnly
in interface UMOTransaction
UMOTransactionException
public boolean isBegun() throws UMOTransactionException
isBegun
in interface UMOTransaction
UMOTransactionException
public boolean isRolledBack() throws UMOTransactionException
isRolledBack
in interface UMOTransaction
UMOTransactionException
public boolean isCommitted() throws UMOTransactionException
isCommitted
in interface UMOTransaction
UMOTransactionException
public void begin() throws UMOTransactionException
UMOTransaction
begin
in interface UMOTransaction
UMOTransactionException
public void commit() throws UMOTransactionException
UMOTransaction
commit
in interface UMOTransaction
UMOTransactionException
public void rollback() throws UMOTransactionException
UMOTransaction
rollback
in interface UMOTransaction
UMOTransactionException
protected abstract void doBegin() throws UMOTransactionException
UMOTransactionException
protected abstract void doCommit() throws UMOTransactionException
UMOTransactionException
protected abstract void doRollback() throws UMOTransactionException
UMOTransactionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |