Groovy Documentation

griffon.plugins.orientdb
[Groovy] Class OrientdbConnector

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

@Singleton
final class OrientdbConnector
extends Object

Authors:
Andres Almiray


Field Summary
private static org.slf4j.Logger LOG

private def bootstrap

 
Constructor Summary
OrientdbConnector()

 
Method Summary
com.orientechnologies.orient.core.db.ODatabase connect(GriffonApplication app, ConfigObject config, String databaseName = 'default')

ConfigObject createConfig(GriffonApplication app)

void disconnect(GriffonApplication app, ConfigObject config, String databaseName = 'default')

private ConfigObject narrowConfig(ConfigObject config, String databaseName)

private com.orientechnologies.orient.core.db.ODatabase startOrientdb(String databaseName, ConfigObject config)

private void stopOrientdb(ConfigObject config, com.orientechnologies.orient.core.db.ODatabase database)

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

LOG

private static final org.slf4j.Logger LOG


bootstrap

private def bootstrap


 
Constructor Detail

OrientdbConnector

OrientdbConnector()


 
Method Detail

connect

com.orientechnologies.orient.core.db.ODatabase connect(GriffonApplication app, ConfigObject config, String databaseName = 'default')


createConfig

ConfigObject createConfig(GriffonApplication app)


disconnect

void disconnect(GriffonApplication app, ConfigObject config, String databaseName = 'default')


narrowConfig

private ConfigObject narrowConfig(ConfigObject config, String databaseName)


startOrientdb

private com.orientechnologies.orient.core.db.ODatabase startOrientdb(String databaseName, ConfigObject config)


stopOrientdb

private void stopOrientdb(ConfigObject config, com.orientechnologies.orient.core.db.ODatabase database)


withOrientdb

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


withOrientdb

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


 

Groovy Documentation