public enum TransactionIsolationLevel extends Enum<TransactionIsolationLevel>
Connection.getTransactionIsolation()
.Enum Constant and Description |
---|
NONE |
READ_COMMITTED |
READ_UNCOMMITTED |
REPEATABLE_READ |
SERIALIZABLE |
Modifier and Type | Field and Description |
---|---|
private int |
jdbcCode |
Modifier and Type | Method and Description |
---|---|
int |
getJdbcCode()
This method gets the JDBC-code according to this isolation-level as defined
by
Connection.getTransactionIsolation() . |
static TransactionIsolationLevel |
valueOf(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 NONE
Connection.TRANSACTION_NONE
public static final TransactionIsolationLevel READ_UNCOMMITTED
Connection.TRANSACTION_READ_UNCOMMITTED
public static final TransactionIsolationLevel READ_COMMITTED
Connection.TRANSACTION_READ_COMMITTED
public static final TransactionIsolationLevel REPEATABLE_READ
Connection.TRANSACTION_REPEATABLE_READ
public static final TransactionIsolationLevel SERIALIZABLE
Connection.TRANSACTION_SERIALIZABLE
private final int jdbcCode
getJdbcCode()
public static TransactionIsolationLevel[] values()
for (TransactionIsolationLevel c : TransactionIsolationLevel.values()) System.out.println(c);
public static TransactionIsolationLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getJdbcCode()
Connection.getTransactionIsolation()
.Copyright © 2001–2016 mmm-Team. All rights reserved.