org.openrdf.sail.memory.model
Enum ReadMode

java.lang.Object
  extended by java.lang.Enum<ReadMode>
      extended by org.openrdf.sail.memory.model.ReadMode
All Implemented Interfaces:
Serializable, Comparable<ReadMode>

public enum ReadMode
extends Enum<ReadMode>

A type-safe enumeration for read modes for MemStatementIterator.

See Also:
MemStatementIterator

Enum Constant Summary
COMMITTED
          Constant indicating that only committed statements should be read.
RAW
          Constant indicating that statements should be read no matter what their transaction status is.
TRANSACTION
          Constant indicating that statements should be treated as if the currently active transaction has been committed.
 
Method Summary
static ReadMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ReadMode[] 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

COMMITTED

public static final ReadMode COMMITTED
Constant indicating that only committed statements should be read. Statements that have been added but not yet committed will be skipped.


TRANSACTION

public static final ReadMode TRANSACTION
Constant indicating that statements should be treated as if the currently active transaction has been committed. Statements that have been scheduled for removal will be skipped.


RAW

public static final ReadMode RAW
Constant indicating that statements should be read no matter what their transaction status is.

Method Detail

values

public static ReadMode[] 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 (ReadMode c : ReadMode.values())
    System.out.println(c);

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

valueOf

public static ReadMode 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-2008 Aduna. All Rights Reserved.