Package org.apache.jena.sparql.core
Class DatasetGraphMonitor
- java.lang.Object
-
- org.apache.jena.sparql.core.DatasetGraphWrapper
-
- org.apache.jena.sparql.core.DatasetGraphMonitor
-
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable,org.apache.jena.atlas.lib.Sync,DatasetGraph,Transactional
@Deprecated public class DatasetGraphMonitor extends DatasetGraphWrapper
Deprecated.Do not use. This class does not reflect transactions.Connect a DatasetGraph to a DatasetChanges monitor. Any add or delete to the DatasetGraph is notified to the monitoring object with aQuadActionto indicate the change made.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(Node g, Node s, Node p, Node o)Deprecated.Add a quadvoidadd(Quad quad)Deprecated.Add a quadvoidaddGraph(Node gn, Graph g)Deprecated.Add the given graph to the dataset.voiddelete(Node g, Node s, Node p, Node o)Deprecated.Delete a quadvoiddelete(Quad quad)Deprecated.Delete a quadvoiddeleteAny(Node g, Node s, Node p, Node o)Deprecated.Delete any quads matching the patternGraphgetDefaultGraph()Deprecated.Get the default graph as a Jena GraphGraphgetGraph(Node graphNode)Deprecated.Get the graph named by graphNode : returns null when there is no such graph.DatasetChangesgetMonitor()Deprecated.Return the monitorDatasetGraphmonitored()Deprecated.Return the monitored DatasetGraphvoidremoveGraph(Node gn)Deprecated.Remove all data associated with the named graph.voidsync()Deprecated.-
Methods inherited from class org.apache.jena.sparql.core.DatasetGraphWrapper
abort, begin, begin, begin, clear, close, commit, contains, contains, containsGraph, end, find, find, find, findNG, getBase, getBaseForQuery, getContext, getLock, getUnionGraph, getWrapped, isEmpty, isInTransaction, listGraphNodes, prefixes, promote, promote, setDefaultGraph, size, supportsTransactionAbort, supportsTransactions, toString, transactionMode, transactionType, unwrap
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jena.sparql.core.DatasetGraph
addAll
-
Methods inherited from interface org.apache.jena.sparql.core.Transactional
calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite
-
-
-
-
Method Detail
-
getMonitor
public DatasetChanges getMonitor()
Deprecated.Return the monitor
-
monitored
public DatasetGraph monitored()
Deprecated.Return the monitored DatasetGraph
-
add
public void add(Quad quad)
Deprecated.Description copied from interface:DatasetGraphAdd a quad- Specified by:
addin interfaceDatasetGraph- Overrides:
addin classDatasetGraphWrapper
-
add
public void add(Node g, Node s, Node p, Node o)
Deprecated.Description copied from interface:DatasetGraphAdd a quad- Specified by:
addin interfaceDatasetGraph- Overrides:
addin classDatasetGraphWrapper
-
delete
public void delete(Quad quad)
Deprecated.Description copied from interface:DatasetGraphDelete a quad- Specified by:
deletein interfaceDatasetGraph- Overrides:
deletein classDatasetGraphWrapper
-
delete
public void delete(Node g, Node s, Node p, Node o)
Deprecated.Description copied from interface:DatasetGraphDelete a quad- Specified by:
deletein interfaceDatasetGraph- Overrides:
deletein classDatasetGraphWrapper
-
deleteAny
public void deleteAny(Node g, Node s, Node p, Node o)
Deprecated.Description copied from interface:DatasetGraphDelete any quads matching the pattern- Specified by:
deleteAnyin interfaceDatasetGraph- Overrides:
deleteAnyin classDatasetGraphWrapper
-
addGraph
public void addGraph(Node gn, Graph g)
Deprecated.Description copied from interface:DatasetGraphAdd the given graph to the dataset. Replaces any existing data for the named graph; to add data, get the graph and add triples to it, or add quads to the dataset. Do not assume that the same Java object is returned byDatasetGraph.getGraph(org.apache.jena.graph.Node)- Specified by:
addGraphin interfaceDatasetGraph- Overrides:
addGraphin classDatasetGraphWrapper
-
removeGraph
public void removeGraph(Node gn)
Deprecated.Description copied from interface:DatasetGraphRemove all data associated with the named graph. This will include prefixes associated with the graph.- Specified by:
removeGraphin interfaceDatasetGraph- Overrides:
removeGraphin classDatasetGraphWrapper
-
sync
public void sync()
Deprecated.- Specified by:
syncin interfaceorg.apache.jena.atlas.lib.Sync- Overrides:
syncin classDatasetGraphWrapper
-
getDefaultGraph
public Graph getDefaultGraph()
Deprecated.Description copied from interface:DatasetGraphGet the default graph as a Jena Graph- Specified by:
getDefaultGraphin interfaceDatasetGraph- Overrides:
getDefaultGraphin classDatasetGraphWrapper
-
getGraph
public Graph getGraph(Node graphNode)
Deprecated.Description copied from interface:DatasetGraphGet the graph named by graphNode : returns null when there is no such graph. NB Whether a dataset contains a graph if there are no triples is not defined - see the specific implementation. Some datasets are "open" - they have all graphs even if no triples.- Specified by:
getGraphin interfaceDatasetGraph- Overrides:
getGraphin classDatasetGraphWrapper
-
-