Interface UpdateHandler
- All Known Implementing Classes:
BaseUpdateHandler
,FlagUpdateHandler
,LoggingUpdateHandler
public interface UpdateHandler
Handles update requests coming from a connection.
- Author:
- Manuel Fiorelli
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStatement
(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource[] newContexts) void
addStatement
(org.eclipse.rdf4j.sail.UpdateContext modify, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource[] newContexts) void
clear
(org.eclipse.rdf4j.model.Resource[] contexts) void
clearHandler
(org.eclipse.rdf4j.model.IRI... contexts) void
boolean
Checks whether this handler is corrupted.boolean
Checks whether no update has been recorded.void
Marks this handler as corrupted.void
removeNamespace
(String prefix) void
removeStatement
(org.eclipse.rdf4j.sail.UpdateContext modify, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource[] newContexts) void
removeStatements
(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource[] newContexts) void
setNamespace
(String prefix, String name)
-
Method Details
-
recordCorruption
void recordCorruption()Marks this handler as corrupted. That should happen, when it hasn't be possible to record an update -
isCorrupted
boolean isCorrupted()Checks whether this handler is corrupted. This check should be performed, before the updates are committed to the triple store.- Returns:
-
isReadOnly
boolean isReadOnly()Checks whether no update has been recorded.- Returns:
-
addStatement
void addStatement(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource[] newContexts) -
addStatement
void addStatement(org.eclipse.rdf4j.sail.UpdateContext modify, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource[] newContexts) -
removeStatements
void removeStatements(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource[] newContexts) -
removeStatement
void removeStatement(org.eclipse.rdf4j.sail.UpdateContext modify, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource[] newContexts) -
clear
void clear(org.eclipse.rdf4j.model.Resource[] contexts) -
setNamespace
-
clearNamespaces
void clearNamespaces() -
removeNamespace
-
clearHandler
void clearHandler(org.eclipse.rdf4j.model.IRI... contexts)
-