|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphRepository<T extends Graph>
The graph repository is an engine specific way of accessing instances of
Graph
which have been loaded. A database backed engine would
provide a repository which queried the database, while a memory backed
engine would use some memory cache. Other implementation are possible,
such as a file backed repository.
Method Summary | |
---|---|
void |
addGraph(T graph)
Adds a graph to the repository. |
List<T> |
getGraphs()
Returns all graphs accessible via this repository. |
List<T> |
getGraphs(String name)
Returns all graphs with the given name. |
T |
getLatestGraph(String name)
Returns The newest Graph with the given name, or null if none is found. |
Method Detail |
---|
T getLatestGraph(String name)
Graph
with the given name, or null if none is found.
name
- The graph name
Graph
with the given name, or null if none is found.List<T> getGraphs(String name)
name
- The name to match
List<T> getGraphs()
void addGraph(T graph)
GraphLoader
.
graph
- The graph to add to the repository.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |