Groovy Documentation

griffon.plugins.hypergraphdb
[Groovy] Class HyperGraphHolder

java.lang.Object
  griffon.plugins.hypergraphdb.HyperGraphHolder
All Implemented Interfaces:
HypergraphdbProvider

@Singleton
class HyperGraphHolder
extends Object

Authors:
Andres Almiray


Field Summary
private static Object[] LOCK

private static org.slf4j.Logger LOG

private Map databases

 
Constructor Summary
HyperGraphHolder()

 
Method Summary
void disconnectHyperGraph(String databaseName)

private org.hypergraphdb.HyperGraph fetchHyperGraph(String databaseName)

org.hypergraphdb.HyperGraph getHyperGraph(String databaseName = 'default')

String[] getHyperGraphNames()

boolean isHyperGraphConnected(String databaseName)

private org.hypergraphdb.HyperGraph retrieveHyperGraph(String databaseName)

void setHyperGraph(String databaseName = 'default', org.hypergraphdb.HyperGraph database)

private void storeHyperGraph(String databaseName, org.hypergraphdb.HyperGraph database)

Object withHyperGraph(String databaseName = 'default', Closure closure)

Object withHyperGraph(String databaseName = 'default', CallableWithArgs callable)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

LOCK

private static final Object[] LOCK


LOG

private static final org.slf4j.Logger LOG


databases

private final Map databases


 
Constructor Detail

HyperGraphHolder

HyperGraphHolder()


 
Method Detail

disconnectHyperGraph

void disconnectHyperGraph(String databaseName)


fetchHyperGraph

private org.hypergraphdb.HyperGraph fetchHyperGraph(String databaseName)


getHyperGraph

org.hypergraphdb.HyperGraph getHyperGraph(String databaseName = 'default')


getHyperGraphNames

String[] getHyperGraphNames()


isHyperGraphConnected

boolean isHyperGraphConnected(String databaseName)


retrieveHyperGraph

private org.hypergraphdb.HyperGraph retrieveHyperGraph(String databaseName)


setHyperGraph

void setHyperGraph(String databaseName = 'default', org.hypergraphdb.HyperGraph database)


storeHyperGraph

private void storeHyperGraph(String databaseName, org.hypergraphdb.HyperGraph database)


withHyperGraph

Object withHyperGraph(String databaseName = 'default', Closure closure)


withHyperGraph

Object withHyperGraph(String databaseName = 'default', CallableWithArgs callable)


 

Groovy Documentation