Package org.dalesbred.transaction
Enum Class Isolation
- All Implemented Interfaces:
Serializable
,Comparable<Isolation>
,java.lang.constant.Constable
Represents the database isolation levels.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUse the default isolation level -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Isolation
forJdbcCode
(int code) Returns the isolation value for given JDBC code.int
Returns the JDBC level for this isolation.static Isolation
Returns the enum constant of this class with the specified name.static Isolation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Use the default isolation level -
READ_UNCOMMITTED
- See Also:
-
READ_COMMITTED
- See Also:
-
REPEATABLE_READ
- See Also:
-
SERIALIZABLE
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
forJdbcCode
Returns the isolation value for given JDBC code. -
getJdbcLevel
public int getJdbcLevel()Returns the JDBC level for this isolation.
-