public enum TransactionLevel extends java.lang.Enum<TransactionLevel>
java.sql.Connection
transaction constants.Connection
Enum Constant and Description |
---|
NONE
Connection.TRANSACTION_NONE |
READ_COMMITTED
Connection.TRANSACTION_READ_COMMITTED |
READ_UNCOMMITTED
Connection.TRANSACTION_READ_UNCOMMITTED |
REPEATABLE_READ
Connection.TRANSACTION_REPEATABLE_READ |
SERIALIZABLE
Connection.TRANSACTION_SERIALIZABLE |
Modifier and Type | Method and Description |
---|---|
static TransactionLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionLevel NONE
Connection.TRANSACTION_NONE
public static final TransactionLevel READ_COMMITTED
Connection.TRANSACTION_READ_COMMITTED
public static final TransactionLevel READ_UNCOMMITTED
Connection.TRANSACTION_READ_UNCOMMITTED
public static final TransactionLevel REPEATABLE_READ
Connection.TRANSACTION_REPEATABLE_READ
public static final TransactionLevel SERIALIZABLE
Connection.TRANSACTION_SERIALIZABLE
public static TransactionLevel[] values()
for (TransactionLevel c : TransactionLevel.values()) System.out.println(c);
public static TransactionLevel 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 null