com.xenonsoft.bridgetown.aop.transaction
Class TransactionStateEnum

java.lang.Object
  extended byorg.apache.commons.lang.enum.Enum
      extended byorg.apache.commons.lang.enum.ValuedEnum
          extended bycom.xenonsoft.bridgetown.aop.transaction.TransactionStateEnum
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class TransactionStateEnum
extends org.apache.commons.lang.enum.ValuedEnum

An Java typed enumeration that specifies the state of a transaction object

Version:
$Id: TransactionStateEnum.java,v 1.2 2005/02/23 01:28:13 peter_pilgrim Exp $
Author:
Peter Pilgrim, 12-Nov-2004 18:38:29
See Also:
Serialized Form

Field Summary
static TransactionStateEnum ACTIVE
          Specifies the transaction is active associated with a thread context.
static TransactionStateEnum COMMITTED
          Specifies the transaction has been committed to the resource (end of phase two of 2PC)
static TransactionStateEnum COMMITTING
          Specifies the transaction is in the committing state (phase two of 2PC)
static TransactionStateEnum IN_PREPARATION
          Specifies the transaction is preparation for commit (phase one of 2PC)
static TransactionStateEnum INDETERMINATE
          Specifies the transaction is in an unknown state, which can be determined precisely by the transaction manager.
static TransactionStateEnum NOT_ACTIVE
          Specifies the transaction is not active
static TransactionStateEnum ROLLEDBACK
          Specifies the transaction has been rolled back to the resource (end of phase two of 2PC)
static TransactionStateEnum ROLLING_BACK
          Specifies the transaction is in the rolling back state (phase two of 2PC)
 
Fields inherited from class org.apache.commons.lang.enum.Enum
iToString
 
Method Summary
static TransactionStateEnum getEnum(int transIso)
          Convert an SQL transaction isolation type into an enumerated type.
static TransactionStateEnum getEnum(java.lang.String textValue)
          Returns the enumeration that matches the text value
static java.util.List getEnumList()
          Return a list collection of registered enumerations for this class type
static java.util.Map getEnumMap()
          Return a map collection of registered enumerations for this class type
static java.util.Iterator iterator()
          Return an iterator that can traverse the collection of registered enumerations
 
Methods inherited from class org.apache.commons.lang.enum.ValuedEnum
compareTo, getEnum, getValue, toString
 
Methods inherited from class org.apache.commons.lang.enum.Enum
equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NOT_ACTIVE

public static final TransactionStateEnum NOT_ACTIVE
Specifies the transaction is not active


ACTIVE

public static final TransactionStateEnum ACTIVE
Specifies the transaction is active associated with a thread context. The state means the transaction has been started.


IN_PREPARATION

public static final TransactionStateEnum IN_PREPARATION
Specifies the transaction is preparation for commit (phase one of 2PC)


COMMITTING

public static final TransactionStateEnum COMMITTING
Specifies the transaction is in the committing state (phase two of 2PC)


COMMITTED

public static final TransactionStateEnum COMMITTED
Specifies the transaction has been committed to the resource (end of phase two of 2PC)


ROLLING_BACK

public static final TransactionStateEnum ROLLING_BACK
Specifies the transaction is in the rolling back state (phase two of 2PC)


ROLLEDBACK

public static final TransactionStateEnum ROLLEDBACK
Specifies the transaction has been rolled back to the resource (end of phase two of 2PC)


INDETERMINATE

public static final TransactionStateEnum INDETERMINATE
Specifies the transaction is in an unknown state, which can be determined precisely by the transaction manager.

Method Detail

getEnum

public static TransactionStateEnum getEnum(java.lang.String textValue)
Returns the enumeration that matches the text value

Parameters:
textValue -
Returns:
the enumeration

getEnum

public static TransactionStateEnum getEnum(int transIso)
Convert an SQL transaction isolation type into an enumerated type.

Parameters:
transIso - the transaction isolation
Returns:

getEnumMap

public static java.util.Map getEnumMap()
Return a map collection of registered enumerations for this class type

Returns:
the map collection

getEnumList

public static java.util.List getEnumList()
Return a list collection of registered enumerations for this class type

Returns:
the list collection

iterator

public static java.util.Iterator iterator()
Return an iterator that can traverse the collection of registered enumerations

Returns:
the iterator


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.