|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.proxy.ProxyGraph
org.openanzo.model.proxy.NamedGraphProxy
org.openanzo.model.replica.ReplicaGraph
public class ReplicaGraph
The purpose of this class is to provide a graph wrapper that caches all queries into the base graph until the reset() method is called. An example is when two clients of a graph want to work "disconnected" from the parent graph (i.e. an editor that displays a form with values and does not want those to keep changing as the underlying graph changes).
| Constructor Summary | |
|---|---|
ReplicaGraph(INamedGraph base)
Create new ReplicaGraph wrapper around a base graph |
|
| Method Summary | |
|---|---|
info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> |
find(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj)
Return an iterator of all statements that match the pattern of subj,prop,obj |
INamedGraph |
getParentGraph()
Get the graph to which this proxy is proxing information. |
ReplicaEventManager |
getReplicaEventManager()
Get the replicaEvent manager for the graph |
void |
reset()
This method will empty the cache and the matches history. |
| Methods inherited from class org.openanzo.model.proxy.NamedGraphProxy |
|---|
getNamedGraphUri, getTransactionManager, isClosed, isMetadataGraph, setNamedGraphUri, toString |
| Methods inherited from class org.openanzo.model.proxy.ProxyGraph |
|---|
add, add, add, clear, close, contains, contains, delete, delete, delete, getEventManager, getStatements, isEmpty, size |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicaGraph(INamedGraph base)
base - graph to wrap| Method Detail |
|---|
public INamedGraph getParentGraph()
IProxyGraph
getParentGraph in interface IProxyGraphgetParentGraph in class NamedGraphProxy
public info.aduna.collections.iterators.CloseableIterator<org.openrdf.model.Statement> find(org.openrdf.model.Resource subj,
org.openrdf.model.URI prop,
org.openrdf.model.Value obj)
INamedGraph
find in interface INamedGraphfind in class ProxyGraphsubj - Subject resource to match, or wildcard if nullprop - Predicate uri to match, or wildcard if nullobj - Object value to match, or wildcard if null
public void reset()
public ReplicaEventManager getReplicaEventManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||