org.openrdf.sail.memory.model
Enum TxnStatus

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

public enum TxnStatus
extends Enum<TxnStatus>
implements Serializable

A type-safe enumeration for transaction status information on MemStatements.


Enum Constant Summary
DEPRECATED
          Constant indicating that an existing statement has been deprecated and should be removed upon commit.
EXPLICIT
          Constant indicating that an existing inferred statement has been added explicitly as part of a transaction and that it should be marked as such upon commit.
INFERRED
          Constant indicating that an existing explicit statement has been removed as part of a transaction, but that it can still be inferred from the other statements.
NEUTRAL
          Constant indicating that a statement has not been affected by a transaction.
NEW
          Constant indicating that a statement has been newly added as part of a transaction, but has not yet been committed.
ZOMBIE
          Constant indicating that a statement was added and then removed in a single transaction.
 
Method Summary
static TxnStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TxnStatus[] 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

NEUTRAL

public static final TxnStatus NEUTRAL
Constant indicating that a statement has not been affected by a transaction.


NEW

public static final TxnStatus NEW
Constant indicating that a statement has been newly added as part of a transaction, but has not yet been committed. Such statements should not be queried to prevent 'dirty reads'.


DEPRECATED

public static final TxnStatus DEPRECATED
Constant indicating that an existing statement has been deprecated and should be removed upon commit.


EXPLICIT

public static final TxnStatus EXPLICIT
Constant indicating that an existing inferred statement has been added explicitly as part of a transaction and that it should be marked as such upon commit.


INFERRED

public static final TxnStatus INFERRED
Constant indicating that an existing explicit statement has been removed as part of a transaction, but that it can still be inferred from the other statements.


ZOMBIE

public static final TxnStatus ZOMBIE
Constant indicating that a statement was added and then removed in a single transaction. The statement should be removed upon commit.

Method Detail

values

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

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

valueOf

public static TxnStatus 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-2007 Aduna. All Rights Reserved.