org.openrdf.store
Enum Isolation

java.lang.Object
  extended by java.lang.Enum<Isolation>
      extended by org.openrdf.store.Isolation
All Implemented Interfaces:
Serializable, Comparable<Isolation>

public enum Isolation
extends Enum<Isolation>

A Connection object's transaction isolation level.

Author:
James Leigh

Enum Constant Summary
NONE
          Indicates that transactions are not supported.
READ_COMMITTED
          In this isolation level only statements that have been committed (at some point) can be seen by the transaction.
READ_UNCOMMITTED
          Transactions are supported, but no isolation.
REPEATABLE_READ
          In addition to read committed, statements in this isolation level that are observed within a successful transaction will remain observable by the transaction until the end.
SERIALIZABLE
          In addition to snapshot, this isolation level requires that all other successful transactions must appear to occur either completely before or completely after a successful serializable transaction.
SNAPSHOT
          In addition to repeatable read, successful transactions in this isolation level will view a consistent snapshot.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final Isolation NONE
Indicates that transactions are not supported.


READ_UNCOMMITTED

public static final Isolation READ_UNCOMMITTED
Transactions are supported, but no isolation.


READ_COMMITTED

public static final Isolation READ_COMMITTED
In this isolation level only statements that have been committed (at some point) can be seen by the transaction.


REPEATABLE_READ

public static final Isolation REPEATABLE_READ
In addition to read committed, statements in this isolation level that are observed within a successful transaction will remain observable by the transaction until the end.


SNAPSHOT

public static final Isolation SNAPSHOT
In addition to repeatable read, successful transactions in this isolation level will view a consistent snapshot. This isolation level will observe either the complete effects of other change-sets and their dependency or no effects of other change-sets.


SERIALIZABLE

public static final Isolation SERIALIZABLE
In addition to snapshot, this isolation level requires that all other successful transactions must appear to occur either completely before or completely after a successful serializable transaction.

Method Detail

values

public static Isolation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Isolation c : Isolation.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Isolation valueOf(String name)
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 name
NullPointerException - if the argument is null


Copyright © 2001-2009 Aduna. All Rights Reserved.