Package google.registry.persistence
Enum PersistenceModule.TransactionIsolationLevel
- java.lang.Object
-
- java.lang.Enum<PersistenceModule.TransactionIsolationLevel>
-
- google.registry.persistence.PersistenceModule.TransactionIsolationLevel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PersistenceModule.TransactionIsolationLevel>
- Enclosing class:
- PersistenceModule
public static enum PersistenceModule.TransactionIsolationLevel extends java.lang.Enum<PersistenceModule.TransactionIsolationLevel>
Transaction isolation levels supported by Cloud SQL (mysql and postgresql).Enum names may be used for property-based configuration, and must match the corresponding variable names in
Connection
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TRANSACTION_READ_COMMITTED
TRANSACTION_READ_UNCOMMITTED
TRANSACTION_REPEATABLE_READ
TRANSACTION_SERIALIZABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static PersistenceModule.TransactionIsolationLevel
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PersistenceModule.TransactionIsolationLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRANSACTION_READ_UNCOMMITTED
public static final PersistenceModule.TransactionIsolationLevel TRANSACTION_READ_UNCOMMITTED
-
TRANSACTION_READ_COMMITTED
public static final PersistenceModule.TransactionIsolationLevel TRANSACTION_READ_COMMITTED
-
TRANSACTION_REPEATABLE_READ
public static final PersistenceModule.TransactionIsolationLevel TRANSACTION_REPEATABLE_READ
-
TRANSACTION_SERIALIZABLE
public static final PersistenceModule.TransactionIsolationLevel TRANSACTION_SERIALIZABLE
-
-
Method Detail
-
values
public static PersistenceModule.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 (PersistenceModule.TransactionIsolationLevel c : PersistenceModule.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 PersistenceModule.TransactionIsolationLevel valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public final int getValue()
-
-