|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.model.impl.StatementImpl
org.openrdf.model.impl.ContextStatementImpl
org.openrdf.sail.memory.model.MemStatement
public class MemStatement
A MemStatement is a Statement which contains context information and a flag indicating whether the statement is explicit or inferred.
| Constructor Summary | |
|---|---|
MemStatement(MemResource subject,
MemURI predicate,
MemValue object,
MemResource context,
boolean explicit,
int sinceSnapshot)
Creates a new MemStatement with the supplied subject, predicate, object and context and marks it as 'explicit'. |
|
MemStatement(MemResource subject,
MemURI predicate,
MemValue object,
MemResource context,
boolean explicit,
int sinceSnapshot,
TxnStatus txnStatus)
Creates a new MemStatement with the supplied subject, predicate, object and context. |
|
MemStatement(MemResource subject,
MemURI predicate,
MemValue object,
MemResource context,
int sinceSnapshot)
Creates a new MemStatement with the supplied subject, predicate, object and context and marks it as 'explicit'. |
|
| Method Summary | |
|---|---|
void |
addToComponentLists()
Lets this statement add itself to the appropriate statement lists of its subject, predicate, object and context. |
MemResource |
getContext()
Gets the context of this statement. |
MemValue |
getObject()
Gets the object of this statement. |
MemURI |
getPredicate()
Gets the predicate of this statement. |
int |
getSinceSnapshot()
|
MemResource |
getSubject()
Gets the subject of this statement. |
int |
getTillSnapshot()
|
TxnStatus |
getTxnStatus()
|
boolean |
isExplicit()
|
boolean |
isInSnapshot(int snapshot)
|
void |
removeFromComponentLists()
Lets this statement remove itself from the appropriate statement lists of its subject, predicate, object and context. |
void |
setExplicit(boolean explicit)
|
void |
setSinceSnapshot(int snapshot)
|
void |
setTillSnapshot(int snapshot)
|
void |
setTxnStatus(TxnStatus txnStatus)
|
| Methods inherited from class org.openrdf.model.impl.ContextStatementImpl |
|---|
toString |
| Methods inherited from class org.openrdf.model.impl.StatementImpl |
|---|
equals, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MemStatement(MemResource subject,
MemURI predicate,
MemValue object,
MemResource context,
int sinceSnapshot)
public MemStatement(MemResource subject,
MemURI predicate,
MemValue object,
MemResource context,
boolean explicit,
int sinceSnapshot)
public MemStatement(MemResource subject,
MemURI predicate,
MemValue object,
MemResource context,
boolean explicit,
int sinceSnapshot,
TxnStatus txnStatus)
| Method Detail |
|---|
public MemResource getSubject()
Statement
getSubject in interface StatementgetSubject in class StatementImplpublic MemURI getPredicate()
Statement
getPredicate in interface StatementgetPredicate in class StatementImplpublic MemValue getObject()
Statement
getObject in interface StatementgetObject in class StatementImplpublic MemResource getContext()
Statement
getContext in interface StatementgetContext in class ContextStatementImplpublic void setSinceSnapshot(int snapshot)
public int getSinceSnapshot()
public void setTillSnapshot(int snapshot)
public int getTillSnapshot()
public boolean isInSnapshot(int snapshot)
public void setExplicit(boolean explicit)
public boolean isExplicit()
public void setTxnStatus(TxnStatus txnStatus)
public TxnStatus getTxnStatus()
public void addToComponentLists()
TxnStatus.NEW.
public void removeFromComponentLists()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||