| Constructor and Description |
|---|
ChangeSetImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAddition(InputStream model,
RDFService.ModelSerializationFormat format,
String graphURI)
Adds one model change representing an addition to the list of model changes
|
void |
addPostChangeEvent(Object o)
Adds an event that will be be passed to any change listeners after all of
the change set additions and retractions are performed.
|
void |
addPreChangeEvent(Object o)
Adds an event that will be be passed to any change listeners in advance of
the change set additions and retractions being performed.
|
void |
addRemoval(InputStream model,
RDFService.ModelSerializationFormat format,
String graphURI)
Adds one model change representing a deletion to the list of model changes
|
List<ModelChange> |
getModelChanges() |
List<Object> |
getPostChangeEvents()
Returns a list of events to pass to any change listeners after
the change set additions and retractions are performed.
|
List<Object> |
getPreChangeEvents()
Returns a list of events to pass to any change listeners in
advance of the change set additions and retractions being performed.
|
String |
getPreconditionQuery() |
RDFService.SPARQLQueryType |
getPreconditionQueryType() |
ModelChange |
manufactureModelChange()
Creates an instance of the ModelChange class
|
ModelChange |
manufactureModelChange(InputStream serializedModel,
RDFService.ModelSerializationFormat serializationFormat,
ModelChange.Operation operation,
String graphURI)
Creates an instance of the ModelChange class
|
void |
setPreconditionQuery(String preconditionQuery) |
void |
setPreconditionQueryType(RDFService.SPARQLQueryType queryType) |
String |
toString() |
public String getPreconditionQuery()
getPreconditionQuery in interface ChangeSetpublic void setPreconditionQuery(String preconditionQuery)
setPreconditionQuery in interface ChangeSetpreconditionQuery - - a SPARQL querypublic RDFService.SPARQLQueryType getPreconditionQueryType()
getPreconditionQueryType in interface ChangeSetpublic void setPreconditionQueryType(RDFService.SPARQLQueryType queryType)
setPreconditionQueryType in interface ChangeSetqueryType - - the precondition query typepublic List<ModelChange> getModelChanges()
getModelChanges in interface ChangeSetpublic void addAddition(InputStream model, RDFService.ModelSerializationFormat format, String graphURI)
ChangeSetaddAddition in interface ChangeSetmodel - - a serialized RDF model (collection of triples)format - - format of the serialized RDF modelgraphURI - - URI of the graph to which the RDF model should be addedpublic void addRemoval(InputStream model, RDFService.ModelSerializationFormat format, String graphURI)
ChangeSetaddRemoval in interface ChangeSetmodel - - a serialized RDF model (collection of triples)format - - format of the serialized RDF modelgraphURI - - URI of the graph from which the RDF model should be removedpublic ModelChange manufactureModelChange()
ChangeSetmanufactureModelChange in interface ChangeSetpublic ModelChange manufactureModelChange(InputStream serializedModel, RDFService.ModelSerializationFormat serializationFormat, ModelChange.Operation operation, String graphURI)
ChangeSetmanufactureModelChange in interface ChangeSetserializedModel - - a serialized RDF model (collection of triples)serializationFormat - - format of the serialized RDF modeloperation - - the type of operation to be performed with the serialized RDF modelgraphURI - - URI of the graph on which to apply the model change operationpublic void addPreChangeEvent(Object o)
ChangeSetaddPreChangeEvent in interface ChangeSeto - - event to notify listeners of in advance of making
changes to the triple store.public void addPostChangeEvent(Object o)
ChangeSetaddPostChangeEvent in interface ChangeSeto - - the event to notify listeners of after the changes are
performed.public List<Object> getPreChangeEvents()
ChangeSetgetPreChangeEvents in interface ChangeSetpublic List<Object> getPostChangeEvents()
ChangeSetgetPostChangeEvents in interface ChangeSetCopyright © 2016. All rights reserved.