public enum Isolation extends Enum<Isolation>
Transactional annotation, corresponding to the
 TransactionDefinition interface.| Enum Constant and Description | 
|---|
| DEFAULTUse the default isolation level of the underlying datastore. | 
| READ_COMMITTEDA constant indicating that dirty reads are prevented; non-repeatable reads
 and phantom reads can occur. | 
| READ_UNCOMMITTEDA constant indicating that dirty reads, non-repeatable reads and phantom reads
 can occur. | 
| REPEATABLE_READA constant indicating that dirty reads and non-repeatable reads are
 prevented; phantom reads can occur. | 
| SERIALIZABLEA constant indicating that dirty reads, non-repeatable reads and phantom
 reads are prevented. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | value() | 
| static Isolation | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static Isolation[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final Isolation DEFAULT
Connectionpublic static final Isolation READ_UNCOMMITTED
Connection.TRANSACTION_READ_UNCOMMITTEDpublic static final Isolation READ_COMMITTED
Connection.TRANSACTION_READ_COMMITTEDpublic static final Isolation REPEATABLE_READ
Connection.TRANSACTION_REPEATABLE_READpublic static final Isolation SERIALIZABLE
ISOLATION_REPEATABLE_READ and further prohibits the situation
 where one transaction reads all rows that satisfy a WHERE
 condition, a second transaction inserts a row that satisfies that
 WHERE condition, and the first transaction rereads for the
 same condition, retrieving the additional "phantom" row in the second read.Connection.TRANSACTION_SERIALIZABLEpublic static Isolation[] values()
for (Isolation c : Isolation.values()) System.out.println(c);
public static Isolation 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 value()