Package play.db
Enum TransactionIsolationLevel
- Object
-
- Enum<TransactionIsolationLevel>
-
- play.db.TransactionIsolationLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<TransactionIsolationLevel>
public enum TransactionIsolationLevel extends Enum<TransactionIsolationLevel>
An enumeration defines of isolation level that determines the degree to which one transaction must be isolated from resource or data modifications made by other operations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ReadCommitted
ReadUncommitted
RepeatedRead
Serializable
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description play.api.db.TransactionIsolationLevel
asScala()
static TransactionIsolationLevel
fromId(int id)
int
getId()
static TransactionIsolationLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static TransactionIsolationLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ReadUncommitted
public static final TransactionIsolationLevel ReadUncommitted
-
ReadCommitted
public static final TransactionIsolationLevel ReadCommitted
-
RepeatedRead
public static final TransactionIsolationLevel RepeatedRead
-
Serializable
public static final TransactionIsolationLevel Serializable
-
-
Method Detail
-
values
public static TransactionIsolationLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TransactionIsolationLevel c : TransactionIsolationLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionIsolationLevel 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 nameNullPointerException
- if the argument is null
-
getId
public int getId()
-
asScala
public play.api.db.TransactionIsolationLevel asScala()
-
fromId
public static TransactionIsolationLevel fromId(int id)
-
-