org.jboss.dna.common.jdbc.model.api
Enum TransactionIsolationLevelType

java.lang.Object
  extended by java.lang.Enum<TransactionIsolationLevelType>
      extended by org.jboss.dna.common.jdbc.model.api.TransactionIsolationLevelType
All Implemented Interfaces:
Serializable, Comparable<TransactionIsolationLevelType>

public enum TransactionIsolationLevelType
extends Enum<TransactionIsolationLevelType>

Provides RDBMS supported transaction isolation levels as enumeration set.

Author:
Sergiy Litsenko

Enum Constant Summary
NONE
           
READ_COMMITTED
           
READ_UNCOMMITTED
           
REPEATABLE_READ
           
SERIALIZABLE
           
 
Method Summary
 int getLevel()
           
 String getName()
           
static TransactionIsolationLevelType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TransactionIsolationLevelType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final TransactionIsolationLevelType NONE

READ_UNCOMMITTED

public static final TransactionIsolationLevelType READ_UNCOMMITTED

READ_COMMITTED

public static final TransactionIsolationLevelType READ_COMMITTED

REPEATABLE_READ

public static final TransactionIsolationLevelType REPEATABLE_READ

SERIALIZABLE

public static final TransactionIsolationLevelType SERIALIZABLE
Method Detail

values

public static final TransactionIsolationLevelType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(TransactionIsolationLevelType c : TransactionIsolationLevelType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static TransactionIsolationLevelType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

getLevel

public int getLevel()

getName

public String getName()


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.