Coverage Report - org.mule.umo.UMOTransaction
 
Classes in this File Line Coverage Branch Coverage Complexity
UMOTransaction
N/A
N/A
1
 
 1  
 /*
 2  
  * $Id: UMOTransaction.java 7976 2007-08-21 14:26:13Z dirk.olmes $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.umo;
 12  
 
 13  
 public interface UMOTransaction
 14  
 {
 15  
 
 16  
     int STATUS_ACTIVE = 0;
 17  
     int STATUS_MARKED_ROLLBACK = 1;
 18  
     int STATUS_PREPARED = 2;
 19  
     int STATUS_COMMITTED = 3;
 20  
     int STATUS_ROLLEDBACK = 4;
 21  
     int STATUS_UNKNOWN = 5;
 22  
     int STATUS_NO_TRANSACTION = 6;
 23  
     int STATUS_PREPARING = 7;
 24  
     int STATUS_COMMITTING = 8;
 25  
     int STATUS_ROLLING_BACK = 9;
 26  
 
 27  
     /**
 28  
      * Begin the transaction.
 29  
      * 
 30  
      * @throws TransactionException
 31  
      */
 32  
     void begin() throws TransactionException;
 33  
 
 34  
     /**
 35  
      * Commit the transaction
 36  
      * 
 37  
      * @throws TransactionException
 38  
      */
 39  
     void commit() throws TransactionException;
 40  
 
 41  
     /**
 42  
      * Rollback the transaction
 43  
      * 
 44  
      * @throws TransactionException
 45  
      */
 46  
     void rollback() throws TransactionException;
 47  
 
 48  
     int getStatus() throws TransactionException;
 49  
 
 50  
     boolean isBegun() throws TransactionException;
 51  
 
 52  
     boolean isRolledBack() throws TransactionException;
 53  
 
 54  
     boolean isCommitted() throws TransactionException;
 55  
 
 56  
     Object getResource(Object key);
 57  
 
 58  
     boolean hasResource(Object key);
 59  
 
 60  
     void bindResource(Object key, Object resource) throws TransactionException;
 61  
 
 62  
     void setRollbackOnly() throws TransactionException;
 63  
 
 64  
     boolean isRollbackOnly() throws TransactionException;
 65  
 }