|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChangeSet
Input parameter to changeSetUpdate() method in RDFService. Represents a precondition query and an ordered list of model changes.
Method Summary | |
---|---|
void |
addAddition(java.io.InputStream model,
RDFService.ModelSerializationFormat serializationFormat,
java.lang.String graphURI)
Adds one model change representing an addition to the list of model changes |
void |
addPostChangeEvent(java.lang.Object event)
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(java.lang.Object event)
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(java.io.InputStream model,
RDFService.ModelSerializationFormat serializationFormat,
java.lang.String graphURI)
Adds one model change representing a deletion to the list of model changes |
java.util.List<ModelChange> |
getModelChanges()
|
java.util.List<java.lang.Object> |
getPostChangeEvents()
Returns a list of events to pass to any change listeners after the change set additions and retractions are performed. |
java.util.List<java.lang.Object> |
getPreChangeEvents()
Returns a list of events to pass to any change listeners in advance of the change set additions and retractions being performed. |
java.lang.String |
getPreconditionQuery()
|
RDFService.SPARQLQueryType |
getPreconditionQueryType()
|
ModelChange |
manufactureModelChange()
Creates an instance of the ModelChange class |
ModelChange |
manufactureModelChange(java.io.InputStream serializedModel,
RDFService.ModelSerializationFormat serializationFormat,
ModelChange.Operation operation,
java.lang.String graphURI)
Creates an instance of the ModelChange class |
void |
setPreconditionQuery(java.lang.String preconditionQuery)
|
void |
setPreconditionQueryType(RDFService.SPARQLQueryType queryType)
|
Method Detail |
---|
java.lang.String getPreconditionQuery()
void setPreconditionQuery(java.lang.String preconditionQuery)
preconditionQuery
- - a SPARQL queryRDFService.SPARQLQueryType getPreconditionQueryType()
void setPreconditionQueryType(RDFService.SPARQLQueryType queryType)
queryType
- - the precondition query typejava.util.List<ModelChange> getModelChanges()
void addAddition(java.io.InputStream model, RDFService.ModelSerializationFormat serializationFormat, java.lang.String graphURI)
model
- - a serialized RDF model (collection of triples)serializationFormat
- - format of the serialized RDF modelgraphURI
- - URI of the graph to which the RDF model should be addedvoid addRemoval(java.io.InputStream model, RDFService.ModelSerializationFormat serializationFormat, java.lang.String graphURI)
model
- - a serialized RDF model (collection of triples)serializationFormat
- - format of the serialized RDF modelgraphURI
- - URI of the graph from which the RDF model should be removedModelChange manufactureModelChange()
ModelChange manufactureModelChange(java.io.InputStream serializedModel, RDFService.ModelSerializationFormat serializationFormat, ModelChange.Operation operation, java.lang.String graphURI)
serializedModel
- - 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 operation
void addPreChangeEvent(java.lang.Object event)
event
- - event to notify listeners of in advance of making
changes to the triple store.void addPostChangeEvent(java.lang.Object event)
event
- - the event to notify listeners of after the changes are
performed.java.util.List<java.lang.Object> getPreChangeEvents()
java.util.List<java.lang.Object> getPostChangeEvents()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |