|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transaction.AbstractTransaction
public abstract class AbstractTransaction
This base class provides low level features for transactions.
| Field Summary | |
|---|---|
protected String |
id
|
protected Log |
logger
|
protected MuleContext |
muleContext
|
| Fields inherited from interface org.mule.api.transaction.Transaction |
|---|
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 | |
|---|---|
protected |
AbstractTransaction(MuleContext muleContext)
|
| 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 |
protected void |
fireNotification(TransactionNotification notification)
Fires a server notification to all registered TransactionNotificationListeners. |
String |
getId()
|
boolean |
isBegun()
|
boolean |
isCommitted()
|
boolean |
isRollbackOnly()
|
boolean |
isRolledBack()
|
boolean |
isXA()
|
void |
resume()
Resume the XA transaction |
void |
rollback()
Rollback the transaction |
Transaction |
suspend()
Suspend the XA transaction |
String |
toString()
|
protected void |
unbindTransaction()
Unbind this transaction when complete |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mule.api.transaction.Transaction |
|---|
bindResource, getResource, getStatus, hasResource, setRollbackOnly |
| Field Detail |
|---|
protected final transient Log logger
protected String id
protected MuleContext muleContext
| Constructor Detail |
|---|
protected AbstractTransaction(MuleContext muleContext)
| Method Detail |
|---|
public boolean isRollbackOnly()
throws TransactionException
isRollbackOnly in interface TransactionTransactionException
public boolean isBegun()
throws TransactionException
isBegun in interface TransactionTransactionException
public boolean isRolledBack()
throws TransactionException
isRolledBack in interface TransactionTransactionException
public boolean isCommitted()
throws TransactionException
isCommitted in interface TransactionTransactionException
public void begin()
throws TransactionException
Transaction
begin in interface TransactionTransactionException
public void commit()
throws TransactionException
Transaction
commit in interface TransactionTransactionException
public void rollback()
throws TransactionException
Transaction
rollback in interface TransactionTransactionException
protected void unbindTransaction()
throws TransactionException
TransactionException
protected abstract void doBegin()
throws TransactionException
TransactionException
protected abstract void doCommit()
throws TransactionException
TransactionException
protected abstract void doRollback()
throws TransactionException
TransactionExceptionprotected void fireNotification(TransactionNotification notification)
TransactionNotificationListeners.
public boolean isXA()
isXA in interface Transaction
public void resume()
throws TransactionException
Transaction
resume in interface TransactionTransactionException - if any error
public Transaction suspend()
throws TransactionException
Transaction
suspend in interface TransactionTransactionException - if any errorpublic String getId()
getId in interface Transactionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||