com.googlecode.sarasvati.hib
Class HibGraphRepository

java.lang.Object
  extended by com.googlecode.sarasvati.hib.HibGraphRepository
All Implemented Interfaces:
GraphRepository<HibGraph>

public class HibGraphRepository
extends Object
implements GraphRepository<HibGraph>


Method Summary
 void addGraph(HibGraph graph)
          Adds a graph to the repository.
 HibGraph findGraph(long graphId)
           
 HibNodeToken findNodeToken(long tokenId)
           
 HibGraphProcess findProcess(long processId)
           
 List<HibGraph> getGraphs()
          Returns all graphs accessible via this repository.
 List<HibGraph> getGraphs(String name)
          Returns all graphs with the given name.
 HibGraph getLatestGraph(String name)
          Returns The newest Graph with the given name, or null if none is found.
 HibGraph loadGraph(long graphId)
           
 HibNodeToken loadNodeToken(long tokenId)
           
 HibGraphProcess loadProcess(long processId)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addGraph

public void addGraph(HibGraph graph)
Description copied from interface: GraphRepository
Adds a graph to the repository. Used by the GraphLoader.

Specified by:
addGraph in interface GraphRepository<HibGraph>
Parameters:
graph - The graph to add to the repository.

getGraphs

public List<HibGraph> getGraphs(String name)
Description copied from interface: GraphRepository
Returns all graphs with the given name.

Specified by:
getGraphs in interface GraphRepository<HibGraph>
Parameters:
name - The name to match
Returns:
All graphs with the given name

getGraphs

public List<HibGraph> getGraphs()
Description copied from interface: GraphRepository
Returns all graphs accessible via this repository.

Specified by:
getGraphs in interface GraphRepository<HibGraph>
Returns:
All graphs accessible via this repository.

getLatestGraph

public HibGraph getLatestGraph(String name)
Description copied from interface: GraphRepository
Returns The newest Graph with the given name, or null if none is found.

Specified by:
getLatestGraph in interface GraphRepository<HibGraph>
Parameters:
name - The graph name
Returns:
The newest Graph with the given name, or null if none is found.

loadGraph

public HibGraph loadGraph(long graphId)

findGraph

public HibGraph findGraph(long graphId)

loadProcess

public HibGraphProcess loadProcess(long processId)

findProcess

public HibGraphProcess findProcess(long processId)

loadNodeToken

public HibNodeToken loadNodeToken(long tokenId)

findNodeToken

public HibNodeToken findNodeToken(long tokenId)