public class MemStatement extends ContextStatementImpl
Constructor and Description |
---|
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'.
|
Modifier and Type | Method and Description |
---|---|
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) |
toString
equals, hashCode
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)
public MemResource getSubject()
Statement
getSubject
in interface Statement
getSubject
in class StatementImpl
public MemURI getPredicate()
Statement
getPredicate
in interface Statement
getPredicate
in class StatementImpl
public MemValue getObject()
Statement
getObject
in interface Statement
getObject
in class StatementImpl
public MemResource getContext()
Statement
getContext
in interface Statement
getContext
in class ContextStatementImpl
public 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()
Copyright © 2001-2016 Aduna. All Rights Reserved.