01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 1997-2006.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.sail.memory.model;
07:
08: import java.io.Serializable;
09:
10: /**
11: * A type-safe enumeration for transaction status information on
12: * MemStatements.
13: */
14: public enum TxnStatus implements Serializable {
15:
16: /**
17: * Constant indicating that a statement has not been affected by a
18: * transaction.
19: */
20: NEUTRAL,
21:
22: /**
23: * Constant indicating that a statement has been newly added as part of a
24: * transaction, but has not yet been committed. Such statements should not
25: * be queried to prevent 'dirty reads'.
26: */
27: NEW,
28:
29: /**
30: * Constant indicating that an existing statement has been deprecated and
31: * should be removed upon commit.
32: */
33: DEPRECATED,
34:
35: /**
36: * Constant indicating that an existing inferred statement has been added
37: * explicitly as part of a transaction and that it should be marked as such
38: * upon commit.
39: */
40: EXPLICIT,
41:
42: /**
43: * Constant indicating that an existing explicit statement has been removed
44: * as part of a transaction, but that it can still be inferred from the
45: * other statements.
46: */
47: INFERRED,
48:
49: /**
50: * Constant indicating that a statement was added and then removed in a
51: * single transaction. The statement should be removed upon commit.
52: */
53: ZOMBIE;
54: }
|