org.mule.umo
Interface UMOTransaction

All Known Implementing Classes:
AbstractTransaction, XaTransaction

public interface UMOTransaction

Version:
$Revision: 1.2 $
Author:
Ross Mason, Guillaume Nodet

Field Summary
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
           
 
Method Summary
 void begin()
          Begin the transaction.
 void bindResource(java.lang.Object key, java.lang.Object resource)
           
 void commit()
          Commit the transaction
 java.lang.Object getResource(java.lang.Object key)
           
 int getStatus()
           
 boolean hasResource(java.lang.Object key)
           
 boolean isBegun()
           
 boolean isCommitted()
           
 boolean isRollbackOnly()
           
 boolean isRolledBack()
           
 void rollback()
          Rollback the transaction
 void setRollbackOnly()
           
 

Field Detail

STATUS_ACTIVE

public static final int STATUS_ACTIVE
See Also:
Constant Field Values

STATUS_MARKED_ROLLBACK

public static final int STATUS_MARKED_ROLLBACK
See Also:
Constant Field Values

STATUS_PREPARED

public static final int STATUS_PREPARED
See Also:
Constant Field Values

STATUS_COMMITTED

public static final int STATUS_COMMITTED
See Also:
Constant Field Values

STATUS_ROLLEDBACK

public static final int STATUS_ROLLEDBACK
See Also:
Constant Field Values

STATUS_UNKNOWN

public static final int STATUS_UNKNOWN
See Also:
Constant Field Values

STATUS_NO_TRANSACTION

public static final int STATUS_NO_TRANSACTION
See Also:
Constant Field Values

STATUS_PREPARING

public static final int STATUS_PREPARING
See Also:
Constant Field Values

STATUS_COMMITTING

public static final int STATUS_COMMITTING
See Also:
Constant Field Values

STATUS_ROLLING_BACK

public static final int STATUS_ROLLING_BACK
See Also:
Constant Field Values
Method Detail

begin

public void begin()
           throws UMOTransactionException
Begin the transaction.

Throws:
UMOTransactionException

commit

public void commit()
            throws UMOTransactionException
Commit the transaction

Throws:
UMOTransactionException

rollback

public void rollback()
              throws UMOTransactionException
Rollback the transaction

Throws:
UMOTransactionException

getStatus

public int getStatus()
              throws UMOTransactionException
Throws:
UMOTransactionException

isBegun

public boolean isBegun()
                throws UMOTransactionException
Throws:
UMOTransactionException

isRolledBack

public boolean isRolledBack()
                     throws UMOTransactionException
Throws:
UMOTransactionException

isCommitted

public boolean isCommitted()
                    throws UMOTransactionException
Throws:
UMOTransactionException

getResource

public java.lang.Object getResource(java.lang.Object key)

hasResource

public boolean hasResource(java.lang.Object key)

bindResource

public void bindResource(java.lang.Object key,
                         java.lang.Object resource)
                  throws UMOTransactionException
Throws:
UMOTransactionException

setRollbackOnly

public void setRollbackOnly()
                     throws UMOTransactionException
Throws:
UMOTransactionException

isRollbackOnly

public boolean isRollbackOnly()
                       throws UMOTransactionException
Throws:
UMOTransactionException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.