|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.googlecode.sarasvati.mem.MemGraphRepository
public class MemGraphRepository
A Graph Repository which can either store graphs in a global/static or local/per-repository cache.
Field Summary | |
---|---|
static MemGraphRepository |
INSTANCE
|
Constructor Summary | |
---|---|
MemGraphRepository()
|
|
MemGraphRepository(boolean useGlobalCache)
|
Method Summary | |
---|---|
void |
addGraph(MemGraph graph)
Adds a graph to the repository. |
List<MemGraph> |
getGraphs()
Returns all graphs accessible via this repository. |
List<MemGraph> |
getGraphs(String name)
Returns all graphs with the given name. |
MemGraph |
getLatestGraph(String name)
Returns The newest Graph with the given name, or null if none is found. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final MemGraphRepository INSTANCE
Constructor Detail |
---|
public MemGraphRepository()
public MemGraphRepository(boolean useGlobalCache)
Method Detail |
---|
public void addGraph(MemGraph graph)
GraphRepository
GraphLoader
.
addGraph
in interface GraphRepository<MemGraph>
graph
- The graph to add to the repository.public List<MemGraph> getGraphs(String name)
GraphRepository
getGraphs
in interface GraphRepository<MemGraph>
name
- The name to match
public List<MemGraph> getGraphs()
GraphRepository
getGraphs
in interface GraphRepository<MemGraph>
public MemGraph getLatestGraph(String name)
GraphRepository
Graph
with the given name, or null if none is found.
getLatestGraph
in interface GraphRepository<MemGraph>
name
- The graph name
Graph
with the given name, or null if none is found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |