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.nativerdf;
07:
08: import java.io.Serializable;
09:
10: import org.openrdf.sail.nativerdf.model.NativeValue;
11:
12: /**
13: * A {@link ValueStore ValueStore} revision for {@link NativeValue NativeValue}
14: * objects. For a cached value ID of a NativeValue to be valid, the revision
15: * object needs to be equal to the concerning ValueStore's revision object. The
16: * ValueStore's revision object is changed whenever values are removed from it
17: * or IDs are changed.
18: *
19: * @author Arjohn Kampman
20: */
21: public class ValueStoreRevision implements Serializable {
22:
23: /*-----------*
24: * Variables *
25: *-----------*/
26:
27: /**
28: *
29: */
30: private static final long serialVersionUID = -2434063125560285009L;
31:
32: transient private ValueStore valueStore;
33:
34: /*--------------*
35: * Constructors *
36: *--------------*/
37:
38: public ValueStoreRevision(ValueStore valueStore) {
39: this .valueStore = valueStore;
40: }
41:
42: /*---------*
43: * Methods *
44: *---------*/
45:
46: public ValueStore getValueStore() {
47: return valueStore;
48: }
49: }
|