com.xenonsoft.bridgetown.aop.transaction
Class TransactionIsolationEnum

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

public final class TransactionIsolationEnum
extends org.apache.commons.lang.enum.ValuedEnum

Transaction Isolation Level from the java.sql.DatabaseMetaData interface and java.sql.Connection type.

Version:
$Id: TransactionIsolationEnum.java,v 1.3 2005/02/23 01:28:13 peter_pilgrim Exp $
Author:
Peter Pilgrim, 20-Oct-2004 19:57:43
See Also:
Connection.TRANSACTION_NONE, Connection.TRANSACTION_READ_UNCOMMITTED, Connection.TRANSACTION_READ_COMMITTED, Connection.TRANSACTION_REPEATABLE_READ, Connection.TRANSACTION_SERIALIZABLE, Serialized Form

Field Summary
static TransactionIsolationEnum TRANSACTION_DEFAULT
          This is a transaction level which denotes accepts whatever the database or resource controller normally initialises to when the object is first retrieved.
static TransactionIsolationEnum TRANSACTION_NONE
          No transaction level is supported.
static TransactionIsolationEnum TRANSACTION_READ_COMMITTED
          A transaction isolation that prevents dirty reads.
static TransactionIsolationEnum TRANSACTION_READ_UNCOMMITTED
          The most lenient transaction level, because it essential does nothing and therefore performs the best.
static TransactionIsolationEnum TRANSACTION_REPEATABLE_READ
          A transaction isolation that prevents dirty reads and non-repeatable reads.
static TransactionIsolationEnum TRANSACTION_SERIALIZABLE
          A transaction isolation that prevents dirty reads, non-repeatable reads and phantom reads.
 
Fields inherited from class org.apache.commons.lang.enum.Enum
iToString
 
Method Summary
static TransactionIsolationEnum getEnum(int transIso)
          Convert an SQL transaction isolation type into an enumerated type.
static TransactionIsolationEnum 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

TRANSACTION_DEFAULT

public static final TransactionIsolationEnum TRANSACTION_DEFAULT
This is a transaction level which denotes accepts whatever the database or resource controller normally initialises to when the object is first retrieved.


TRANSACTION_READ_UNCOMMITTED

public static final TransactionIsolationEnum TRANSACTION_READ_UNCOMMITTED
The most lenient transaction level, because it essential does nothing and therefore performs the best. With this transaction level dirty reads, non-repeatable reads, and phantom reads can occur.


TRANSACTION_READ_COMMITTED

public static final TransactionIsolationEnum TRANSACTION_READ_COMMITTED
A transaction isolation that prevents dirty reads.


TRANSACTION_REPEATABLE_READ

public static final TransactionIsolationEnum TRANSACTION_REPEATABLE_READ
A transaction isolation that prevents dirty reads and non-repeatable reads.


TRANSACTION_SERIALIZABLE

public static final TransactionIsolationEnum TRANSACTION_SERIALIZABLE
A transaction isolation that prevents dirty reads, non-repeatable reads and phantom reads.


TRANSACTION_NONE

public static final TransactionIsolationEnum TRANSACTION_NONE
No transaction level is supported.

Method Detail

getEnum

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

Parameters:
textValue -
Returns:
the enumeration

getEnum

public static TransactionIsolationEnum 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.