Groovy Documentation

griffon.plugins.ormlite
[Groovy] Class OrmliteConnector

java.lang.Object
  griffon.plugins.ormlite.OrmliteConnector
All Implemented Interfaces:
OrmliteProvider

@Singleton
final class OrmliteConnector
extends Object

Authors:
Andres Almiray


Field Summary
private static org.slf4j.Logger LOG

private def bootstrap

 
Constructor Summary
OrmliteConnector()

 
Method Summary
com.j256.ormlite.jdbc.JdbcConnectionSource 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.j256.ormlite.jdbc.JdbcConnectionSource startOrmlite(ConfigObject config)

private void stopOrmlite(ConfigObject config, com.j256.ormlite.jdbc.JdbcConnectionSource connection)

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

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

OrmliteConnector

OrmliteConnector()


 
Method Detail

connect

com.j256.ormlite.jdbc.JdbcConnectionSource 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)


startOrmlite

private com.j256.ormlite.jdbc.JdbcConnectionSource startOrmlite(ConfigObject config)


stopOrmlite

private void stopOrmlite(ConfigObject config, com.j256.ormlite.jdbc.JdbcConnectionSource connection)


withOrmlite

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


withOrmlite

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


 

Groovy Documentation