com.hp.hpl.jena.sparql.core
Class DatasetChangesCapture

java.lang.Object
  extended by com.hp.hpl.jena.sparql.core.DatasetChangesCapture
All Implemented Interfaces:
DatasetChanges

public class DatasetChangesCapture
extends Object
implements DatasetChanges

Capture a record of quad actions


Constructor Summary
DatasetChangesCapture()
          Capture quad actions, excluding no-ops
DatasetChangesCapture(boolean recordNoOps)
          Capture quad actions, either including or excluding the "no ops"
DatasetChangesCapture(boolean captureAdd, boolean captureDelete, boolean captureNoAdd, boolean captureNoDelete)
          Capture quad actions, selectively by category
 
Method Summary
 void change(QuadAction qaction, Node g, Node s, Node p, Node o)
          A change has occurred
 void finish()
          Indicator that a sequence of changes has now finished
 List<Pair<QuadAction,Quad>> getActions()
           
 void start()
          Indicator that a sequence of changes is about to start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasetChangesCapture

public DatasetChangesCapture()
Capture quad actions, excluding no-ops


DatasetChangesCapture

public DatasetChangesCapture(boolean recordNoOps)
Capture quad actions, either including or excluding the "no ops"

Parameters:
recordNoOps - Whether to record QuadAction.NO_ADD and QuadAction.NO_DELETE

DatasetChangesCapture

public DatasetChangesCapture(boolean captureAdd,
                             boolean captureDelete,
                             boolean captureNoAdd,
                             boolean captureNoDelete)
Capture quad actions, selectively by category

Method Detail

getActions

public List<Pair<QuadAction,Quad>> getActions()

start

public void start()
Description copied from interface: DatasetChanges
Indicator that a sequence of changes is about to start

Specified by:
start in interface DatasetChanges

change

public void change(QuadAction qaction,
                   Node g,
                   Node s,
                   Node p,
                   Node o)
Description copied from interface: DatasetChanges
A change has occurred

Specified by:
change in interface DatasetChanges
See Also:
QuadAction

finish

public void finish()
Description copied from interface: DatasetChanges
Indicator that a sequence of changes has now finished

Specified by:
finish in interface DatasetChanges


Licenced under the Apache License, Version 2.0