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.model;
07:
08: import org.openrdf.model.impl.BNodeImpl;
09: import org.openrdf.sail.nativerdf.ValueStoreRevision;
10:
11: public class NativeBNode extends BNodeImpl implements NativeResource {
12:
13: /*-----------*
14: * Variables *
15: *-----------*/
16:
17: /**
18: *
19: */
20: private static final long serialVersionUID = -6909531767964492411L;
21:
22: private ValueStoreRevision revision;
23:
24: private int id;
25:
26: /*--------------*
27: * Constructors *
28: *--------------*/
29:
30: public NativeBNode(ValueStoreRevision revision, String nodeID) {
31: this (revision, nodeID, UNKNOWN_ID);
32: }
33:
34: public NativeBNode(ValueStoreRevision revision, String nodeID,
35: int id) {
36: super (nodeID);
37: setInternalID(id, revision);
38: }
39:
40: /*---------*
41: * Methods *
42: *---------*/
43:
44: public void setInternalID(int id, ValueStoreRevision revision) {
45: this .id = id;
46: this .revision = revision;
47: }
48:
49: public ValueStoreRevision getValueStoreRevision() {
50: return revision;
51: }
52:
53: public int getInternalID() {
54: return id;
55: }
56: }
|