railo.runtime.orm
Class ORMConfigurationImpl

java.lang.Object
  extended by railo.runtime.orm.ORMConfigurationImpl
All Implemented Interfaces:
ORMConfiguration

public class ORMConfigurationImpl
extends Object
implements ORMConfiguration


Field Summary
static Collection.Key AUTO_GEN_MAP
           
static Collection.Key AUTO_MANAGE_SESSION
           
static Collection.Key CACHE_CONFIG
           
static Collection.Key CACHE_PROVIDER
           
static Collection.Key CATALOG
           
static Collection.Key DB_CREATE
           
static int DBCREATE_DROP_CREATE
           
static int DBCREATE_NONE
           
static int DBCREATE_UPDATE
           
static Collection.Key DIALECT
           
static Collection.Key EVENT_HANDLER
           
static Collection.Key EVENT_HANDLING
           
static Collection.Key FLUSH_AT_REQUEST_END
           
static Collection.Key IS_DEFAULT_CFC_LOCATION
           
static Collection.Key LOG_SQL
           
static Collection.Key NAMING_STRATEGY
           
static Collection.Key ORM_CONFIG
           
static Collection.Key SAVE_MAPPING
           
static Collection.Key SCHEMA
           
static Collection.Key SECONDARY_CACHE_ENABLED
           
static Collection.Key SQL_SCRIPT
           
static Collection.Key USE_DB_FOR_MAPPING
           
 
Method Summary
 boolean autogenmap()
           
 boolean autoManageSession()
           
static int dbCreateAsInt(String dbCreate)
           
static String dbCreateAsString(int dbCreate)
           
 String eventHandler()
           
 boolean eventHandling()
           
 boolean flushAtRequestEnd()
           
 Resource getCacheConfig()
           
 String getCacheProvider()
           
 String getCatalog()
           
 Resource[] getCfcLocations()
           
 int getDbCreate()
           
 String getDialect()
           
 Resource getOrmConfig()
           
 String getSchema()
           
 Resource getSqlScript()
           
 String hash()
           
 boolean isDefaultCfcLocation()
           
static ORMConfiguration load(Config config, ApplicationContext ac, Element el, Resource defaultCFCLocation, ORMConfiguration defaultConfig)
           
static ORMConfiguration load(Config config, ApplicationContext ac, Struct settings, Resource defaultCFCLocation, ORMConfiguration defaultConfig)
           
static List<Resource> loadCFCLocation(Config config, ApplicationContext ac, Object obj, boolean onlyDir)
           
 boolean logSQL()
           
 String namingStrategy()
           
 boolean saveMapping()
           
 boolean secondaryCacheEnabled()
           
 boolean skipCFCWithError()
           
 Object toStruct()
           
 boolean useDBForMapping()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DBCREATE_NONE

public static final int DBCREATE_NONE
See Also:
Constant Field Values

DBCREATE_UPDATE

public static final int DBCREATE_UPDATE
See Also:
Constant Field Values

DBCREATE_DROP_CREATE

public static final int DBCREATE_DROP_CREATE
See Also:
Constant Field Values

AUTO_GEN_MAP

public static final Collection.Key AUTO_GEN_MAP

CATALOG

public static final Collection.Key CATALOG

IS_DEFAULT_CFC_LOCATION

public static final Collection.Key IS_DEFAULT_CFC_LOCATION

DB_CREATE

public static final Collection.Key DB_CREATE

DIALECT

public static final Collection.Key DIALECT

FLUSH_AT_REQUEST_END

public static final Collection.Key FLUSH_AT_REQUEST_END

LOG_SQL

public static final Collection.Key LOG_SQL

SAVE_MAPPING

public static final Collection.Key SAVE_MAPPING

SCHEMA

public static final Collection.Key SCHEMA

SECONDARY_CACHE_ENABLED

public static final Collection.Key SECONDARY_CACHE_ENABLED

SQL_SCRIPT

public static final Collection.Key SQL_SCRIPT

USE_DB_FOR_MAPPING

public static final Collection.Key USE_DB_FOR_MAPPING

CACHE_CONFIG

public static final Collection.Key CACHE_CONFIG

CACHE_PROVIDER

public static final Collection.Key CACHE_PROVIDER

ORM_CONFIG

public static final Collection.Key ORM_CONFIG

EVENT_HANDLING

public static final Collection.Key EVENT_HANDLING

EVENT_HANDLER

public static final Collection.Key EVENT_HANDLER

AUTO_MANAGE_SESSION

public static final Collection.Key AUTO_MANAGE_SESSION

NAMING_STRATEGY

public static final Collection.Key NAMING_STRATEGY
Method Detail

load

public static ORMConfiguration load(Config config,
                                    ApplicationContext ac,
                                    Element el,
                                    Resource defaultCFCLocation,
                                    ORMConfiguration defaultConfig)

load

public static ORMConfiguration load(Config config,
                                    ApplicationContext ac,
                                    Struct settings,
                                    Resource defaultCFCLocation,
                                    ORMConfiguration defaultConfig)

loadCFCLocation

public static List<Resource> loadCFCLocation(Config config,
                                             ApplicationContext ac,
                                             Object obj,
                                             boolean onlyDir)

hash

public String hash()
Specified by:
hash in interface ORMConfiguration

autogenmap

public boolean autogenmap()
Specified by:
autogenmap in interface ORMConfiguration
Returns:
the autogenmap

getCatalog

public String getCatalog()
Specified by:
getCatalog in interface ORMConfiguration
Returns:
the catalog

getCfcLocations

public Resource[] getCfcLocations()
Specified by:
getCfcLocations in interface ORMConfiguration
Returns:
the cfcLocation

isDefaultCfcLocation

public boolean isDefaultCfcLocation()
Specified by:
isDefaultCfcLocation in interface ORMConfiguration

getDbCreate

public int getDbCreate()
Specified by:
getDbCreate in interface ORMConfiguration
Returns:
the dbCreate

getDialect

public String getDialect()
Specified by:
getDialect in interface ORMConfiguration
Returns:
the dialect

eventHandling

public boolean eventHandling()
Specified by:
eventHandling in interface ORMConfiguration
Returns:
the eventHandling

eventHandler

public String eventHandler()
Specified by:
eventHandler in interface ORMConfiguration

namingStrategy

public String namingStrategy()
Specified by:
namingStrategy in interface ORMConfiguration

flushAtRequestEnd

public boolean flushAtRequestEnd()
Specified by:
flushAtRequestEnd in interface ORMConfiguration
Returns:
the flushAtRequestEnd

logSQL

public boolean logSQL()
Specified by:
logSQL in interface ORMConfiguration
Returns:
the logSQL

saveMapping

public boolean saveMapping()
Specified by:
saveMapping in interface ORMConfiguration
Returns:
the saveMapping

getSchema

public String getSchema()
Specified by:
getSchema in interface ORMConfiguration
Returns:
the schema

secondaryCacheEnabled

public boolean secondaryCacheEnabled()
Specified by:
secondaryCacheEnabled in interface ORMConfiguration
Returns:
the secondaryCacheEnabled

getSqlScript

public Resource getSqlScript()
Specified by:
getSqlScript in interface ORMConfiguration
Returns:
the sqlScript

useDBForMapping

public boolean useDBForMapping()
Specified by:
useDBForMapping in interface ORMConfiguration
Returns:
the useDBForMapping

getCacheConfig

public Resource getCacheConfig()
Specified by:
getCacheConfig in interface ORMConfiguration
Returns:
the cacheConfig

getCacheProvider

public String getCacheProvider()
Specified by:
getCacheProvider in interface ORMConfiguration
Returns:
the cacheProvider

getOrmConfig

public Resource getOrmConfig()
Specified by:
getOrmConfig in interface ORMConfiguration
Returns:
the ormConfig

skipCFCWithError

public boolean skipCFCWithError()
Specified by:
skipCFCWithError in interface ORMConfiguration

autoManageSession

public boolean autoManageSession()
Specified by:
autoManageSession in interface ORMConfiguration

toStruct

public Object toStruct()
Specified by:
toStruct in interface ORMConfiguration

dbCreateAsInt

public static int dbCreateAsInt(String dbCreate)

dbCreateAsString

public static String dbCreateAsString(int dbCreate)


Copyright © 2012 Railo