|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IInstanceCountProvider
An object that keeps track of the number of instances (rdf:type triples) in each registered Graph. One instance of this is managed per IChangeEngine, and this way also per ISession.
| Method Summary | |
|---|---|
void |
addListener(IInstanceCountListener listener)
|
void |
clear()
Resets any cached values. |
void |
dispose()
Should be called to enable this to remove itself as listener. |
java.lang.Integer |
getInstanceCount(com.hp.hpl.jena.graph.Graph graph,
com.hp.hpl.jena.graph.Node classNode)
Gets the number of known instances of a given class in a given Graph. |
void |
refresh(TripleChangeRecord[] records,
boolean undone)
Called by the IChangeEngine so that this can update the counts from the change records. |
void |
removeGraph(com.hp.hpl.jena.graph.Graph graph)
|
void |
removeListener(IInstanceCountListener listener)
|
| Method Detail |
|---|
void addListener(IInstanceCountListener listener)
void clear()
void dispose()
java.lang.Integer getInstanceCount(com.hp.hpl.jena.graph.Graph graph,
com.hp.hpl.jena.graph.Node classNode)
graph - the Graph to get the number of instancesclassNode - the Node of the class
void refresh(TripleChangeRecord[] records,
boolean undone)
records - the recordsundone - true if the records have been undonevoid removeGraph(com.hp.hpl.jena.graph.Graph graph)
void removeListener(IInstanceCountListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||