public abstract class AbstractTransaction extends Object implements Transaction
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
STATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN| Constructor and Description |
|---|
AbstractTransaction() |
| Modifier and Type | Method and Description |
|---|---|
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
org.mule.api.context.notification.listener.TransactionNotificationListeners. |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbindResource, getResource, getStatus, hasResource, setRollbackOnlypublic boolean isRollbackOnly()
throws TransactionException
isRollbackOnly in interface TransactionTransactionExceptionpublic boolean isBegun()
throws TransactionException
isBegun in interface TransactionTransactionExceptionpublic boolean isRolledBack()
throws TransactionException
isRolledBack in interface TransactionTransactionExceptionpublic boolean isCommitted()
throws TransactionException
isCommitted in interface TransactionTransactionExceptionpublic void begin()
throws TransactionException
Transactionbegin in interface TransactionTransactionExceptionpublic void commit()
throws TransactionException
Transactioncommit in interface TransactionTransactionExceptionpublic void rollback()
throws TransactionException
Transactionrollback in interface TransactionTransactionExceptionprotected abstract void doBegin()
throws TransactionException
TransactionExceptionprotected abstract void doCommit()
throws TransactionException
TransactionExceptionprotected abstract void doRollback()
throws TransactionException
TransactionExceptionprotected void fireNotification(TransactionNotification notification)
org.mule.api.context.notification.listener.TransactionNotificationListeners.public boolean isXA()
isXA in interface Transactionpublic void resume()
throws TransactionException
Transactionresume in interface TransactionTransactionException - if any errorpublic Transaction suspend() throws TransactionException
Transactionsuspend in interface TransactionTransactionException - if any errorCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.