Groovy Documentation

griffon.plugins.orientdb
[Groovy] Class OrientdbDatabaseHolder

java.lang.Object
  griffon.plugins.orientdb.OrientdbDatabaseHolder
All Implemented Interfaces:
OrientdbProvider

@Singleton
class OrientdbDatabaseHolder
extends Object

Authors:
Andres Almiray


Field Summary
private static Object[] LOCK

private static org.slf4j.Logger LOG

private Map configurations

 
Constructor Summary
OrientdbDatabaseHolder()

 
Method Summary
private com.orientechnologies.orient.core.db.ODatabase acquireDatabase(ConfigObject config)

void disconnectDatabase(String databaseName)

private com.orientechnologies.orient.core.db.ODatabase fetchDatabase(String databaseName)

com.orientechnologies.orient.core.db.ODatabase getDatabase(String databaseName = 'default')

String[] getDatabaseNames()

boolean isDatabaseConnected(String databaseName)

private ConfigObject retrieveConfiguration(String databaseName)

void setDatabase(String databaseName = 'default', ConfigObject config)

private void storeConfiguration(String databaseName, ConfigObject config)

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

Object withOrientdb(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


configurations

private final Map configurations


 
Constructor Detail

OrientdbDatabaseHolder

OrientdbDatabaseHolder()


 
Method Detail

acquireDatabase

private com.orientechnologies.orient.core.db.ODatabase acquireDatabase(ConfigObject config)


disconnectDatabase

void disconnectDatabase(String databaseName)


fetchDatabase

private com.orientechnologies.orient.core.db.ODatabase fetchDatabase(String databaseName)


getDatabase

com.orientechnologies.orient.core.db.ODatabase getDatabase(String databaseName = 'default')


getDatabaseNames

String[] getDatabaseNames()


isDatabaseConnected

boolean isDatabaseConnected(String databaseName)


retrieveConfiguration

private ConfigObject retrieveConfiguration(String databaseName)


setDatabase

void setDatabase(String databaseName = 'default', ConfigObject config)


storeConfiguration

private void storeConfiguration(String databaseName, ConfigObject config)


withOrientdb

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


withOrientdb

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


 

Groovy Documentation