public enum TransactionIsolationLevel extends java.lang.Enum<TransactionIsolationLevel>
| Enum Constant and Description |
|---|
DEFAULT
the default level
|
READ_COMMITTED |
READ_UNCOMMITTED |
REPEATABLE_READ |
SERIALIZABLE |
| Modifier and Type | Method and Description |
|---|---|
int |
getLevel()
Returns the constant that represents a transaction isolation level.
|
static TransactionIsolationLevel |
valueOf(java.lang.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.
|
public static final TransactionIsolationLevel READ_UNCOMMITTED
Connection.TRANSACTION_READ_UNCOMMITTEDpublic static final TransactionIsolationLevel READ_COMMITTED
Connection.TRANSACTION_READ_COMMITTEDpublic static final TransactionIsolationLevel REPEATABLE_READ
Connection.TRANSACTION_REPEATABLE_READpublic static final TransactionIsolationLevel SERIALIZABLE
Connection.TRANSACTION_SERIALIZABLEpublic static final TransactionIsolationLevel DEFAULT
public static TransactionIsolationLevel[] values()
for (TransactionIsolationLevel c : TransactionIsolationLevel.values()) System.out.println(c);
public static TransactionIsolationLevel valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getLevel()
-1 indicates the default transaction isolation level.
Connection.TRANSACTION_READ_UNCOMMITTED,
Connection.TRANSACTION_READ_COMMITTED,
Connection.TRANSACTION_REPEATABLE_READ,
Connection.TRANSACTION_SERIALIZABLE