1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package olr.statementpool;
20
21 import olr.rdf.Attribute;
22
23 public class DBStatement extends ExtStatement
24 {
25
26 public DBStatement(String subject, String predicate, String object,
27 int DBstatementID)
28 {
29 super(subject, predicate, object);
30 this.DBstatementID = 0;
31 modified = false;
32 this.DBstatementID = DBstatementID;
33 }
34
35 public DBStatement(String subject, Attribute attribute, int DBstatementID)
36 {
37 super(subject, attribute.getPredicate(), attribute.getObject(),
38 attribute.getID());
39 this.DBstatementID = 0;
40 modified = false;
41 this.DBstatementID = DBstatementID;
42 }
43
44 public int getDBstatementID()
45 {
46 return DBstatementID;
47 }
48
49 public void setDBstatementID(int DBstatementID)
50 {
51 this.DBstatementID = DBstatementID;
52 }
53
54 public boolean isPublic()
55 {
56 return super.isPublic;
57 }
58
59 public void setPublic(boolean isPublic)
60 {
61 super.isPublic = isPublic;
62 }
63
64 public boolean isModified()
65 {
66 return modified;
67 }
68
69 public void saved()
70 {
71 modified = false;
72 }
73
74 public void setObject(String object)
75 {
76 if (!getObject().equals(object))
77 {
78 super.setObject(object);
79 modified = true;
80 }
81 }
82
83 private int DBstatementID;
84
85 private boolean modified;
86 }