Package com.pyranid
Enum Class TransactionIsolation
- All Implemented Interfaces:
Serializable
,Comparable<TransactionIsolation>
,Constable
Strategies for database locking during transactional operations.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDefault isolation (DBMS-specific).Maps to JDBC valueConnection.TRANSACTION_READ_COMMITTED
.Maps to JDBC valueConnection.TRANSACTION_READ_UNCOMMITTED
.Maps to JDBC valueConnection.TRANSACTION_REPEATABLE_READ
.Maps to JDBC valueConnection.TRANSACTION_SERIALIZABLE
. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionIsolation
Returns the enum constant of this class with the specified name.static TransactionIsolation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DEFAULT
Default isolation (DBMS-specific). -
READ_COMMITTED
Maps to JDBC valueConnection.TRANSACTION_READ_COMMITTED
. -
READ_UNCOMMITTED
Maps to JDBC valueConnection.TRANSACTION_READ_UNCOMMITTED
. -
REPEATABLE_READ
Maps to JDBC valueConnection.TRANSACTION_REPEATABLE_READ
. -
SERIALIZABLE
Maps to JDBC valueConnection.TRANSACTION_SERIALIZABLE
.
-
-
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
-