|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topbraid.core.instancecount.InstanceCountProvider
public class InstanceCountProvider
The default implementation of IInstanceCountProvider.
| Constructor Summary | |
|---|---|
InstanceCountProvider()
|
|
| 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstanceCountProvider()
| Method Detail |
|---|
public void addListener(IInstanceCountListener listener)
addListener in interface IInstanceCountProviderpublic void clear()
IInstanceCountProvider
clear in interface IInstanceCountProviderpublic void dispose()
IInstanceCountProvider
dispose in interface IInstanceCountProvider
public java.lang.Integer getInstanceCount(com.hp.hpl.jena.graph.Graph graph,
com.hp.hpl.jena.graph.Node classNode)
IInstanceCountProvider
getInstanceCount in interface IInstanceCountProvidergraph - the Graph to get the number of instancesclassNode - the Node of the class
public void refresh(TripleChangeRecord[] records,
boolean undone)
IInstanceCountProvider
refresh in interface IInstanceCountProviderrecords - the recordsundone - true if the records have been undonepublic void removeGraph(com.hp.hpl.jena.graph.Graph graph)
removeGraph in interface IInstanceCountProviderpublic void removeListener(IInstanceCountListener listener)
removeListener in interface IInstanceCountProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||