Enum TransactionIsolation
- All Implemented Interfaces:
Comparable<TransactionIsolation>
The transaction isolation a caller asks a wire client for. The names are the
SQL standard's with
_ for the space, which is how the clients spell them to
the server.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe server's own default.Only committed data is read.Dirty reads allowed.Rows read once read the same again.As if the transactions ran one after another. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionIsolationReturns the enum constant of this type with the specified name.static TransactionIsolation[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
DEFAULT
The server's own default. -
READ_UNCOMMITTED
Dirty reads allowed. -
READ_COMMITTED
Only committed data is read. -
REPEATABLE_READ
Rows read once read the same again. -
SERIALIZABLE
As if the transactions ran one after another.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-