public class MemoryStoreConnection extends SailSourceConnection
Modifier and Type | Field and Description |
---|---|
protected MemoryStore |
sail |
connectionLock, updateLock
Modifier | Constructor and Description |
---|---|
protected |
MemoryStoreConnection(MemoryStore sail) |
Modifier and Type | Method and Description |
---|---|
boolean |
addInferredStatement(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Adds an inferred statement to a specific context.
|
protected void |
addStatementInternal(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
void |
clearInferred(Resource... contexts)
Removes all inferred statements from the specified/all contexts.
|
protected void |
clearInternal(Resource... contexts) |
protected void |
commitInternal() |
MemoryStore |
getSail() |
boolean |
removeInferredStatement(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Removes an inferred statement from a specific context.
|
protected void |
removeStatementsInternal(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
protected void |
rollbackInternal() |
protected void |
startTransactionInternal() |
addStatement, clearNamespacesInternal, closeInternal, endUpdateInternal, evaluateInternal, explain, flushUpdates, getContextIDsInternal, getEvaluationStrategy, getFederatedServiceResolver, getNamespaceInternal, getNamespacesInternal, getStatementsInternal, prepareInternal, removeNamespaceInternal, removeStatement, setFederatedServiceResolver, setNamespaceInternal, sizeInternal, startUpdate
addConnectionListener, hasConnectionListeners, notifyStatementAdded, notifyStatementRemoved, removeConnectionListener
addStatement, autoStartTransaction, begin, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, flush, getContextIDs, getExclusiveConnectionLock, getNamespace, getNamespaces, getSharedConnectionLock, getStatements, getTransactionIsolation, getTransactionLock, isActive, isActiveOperation, isOpen, iterationClosed, pendingAdds, pendingRemovals, prepare, registerIteration, removeNamespace, removeStatements, rollback, setNamespace, size, transactionActive, verifyIsActive, verifyIsOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addConnectionListener, removeConnectionListener
addStatement, addStatement, addStatement, begin, begin, clear, clearNamespaces, close, commit, endUpdate, evaluate, flush, getContextIDs, getNamespace, getNamespaces, getStatements, getStatements, hasStatement, isActive, isOpen, pendingRemovals, prepare, prepareQuery, removeNamespace, removeStatement, removeStatements, removeStatements, rollback, setNamespace, setTransactionSettings, size
protected final MemoryStore sail
protected MemoryStoreConnection(MemoryStore sail)
protected void startTransactionInternal() throws SailException
startTransactionInternal
in class SailSourceConnection
SailException
protected void commitInternal() throws SailException
commitInternal
in class SailSourceConnection
SailException
protected void rollbackInternal() throws SailException
rollbackInternal
in class SailSourceConnection
SailException
protected void addStatementInternal(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException
addStatementInternal
in class AbstractSailConnection
SailException
public boolean addInferredStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException
InferencerConnection
addInferredStatement
in interface InferencerConnection
addInferredStatement
in class SailSourceConnection
subj
- The subject of the statement to add.pred
- The predicate of the statement to add.obj
- The object of the statement to add.contexts
- The context(s) to add the statement to. Note that this parameter is a vararg and as such is
optional. If no contexts are supplied the method operates on the entire repository.SailException
- If the statement could not be added.protected void removeStatementsInternal(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException
removeStatementsInternal
in class AbstractSailConnection
SailException
public boolean removeInferredStatement(Resource subj, IRI pred, Value obj, Resource... contexts) throws SailException
InferencerConnection
removeInferredStatement
in interface InferencerConnection
removeInferredStatement
in class SailSourceConnection
subj
- The subject of the statement that should be removed.pred
- The predicate of the statement that should be removed.obj
- The object of the statement that should be removed.contexts
- The context(s) from which to remove the statements. Note that this parameter is a vararg and as
such is optional. If no contexts are supplied the method operates on the entire repository.SailException
- If the statement could not be removed.protected void clearInternal(Resource... contexts) throws SailException
clearInternal
in class SailSourceConnection
SailException
public void clearInferred(Resource... contexts) throws SailException
InferencerConnection
clearInferred
in interface InferencerConnection
clearInferred
in class SailSourceConnection
contexts
- The context(s) from which to remove the statements. Note that this parameter is a vararg and as
such is optional. If no contexts are supplied the method operates on the entire repository.SailException
- If the statements could not be removed.public MemoryStore getSail()
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.