railo.runtime.orm
Class ORMConfiguration

java.lang.Object
  extended by railo.runtime.orm.ORMConfiguration

public class ORMConfiguration
extends Object


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 CFC_LOCATION
           
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 SKIP_WITH_ERROR
           
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, ApplicationContextPro ac, Element el, Resource defaultCFCLocation, ORMConfiguration defaultConfig)
           
static ORMConfiguration load(Config config, ApplicationContextPro ac, Struct settings, Resource defaultCFCLocation, ORMConfiguration defaultConfig)
           
 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

CFC_LOCATION

public static final Collection.Key CFC_LOCATION

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

SKIP_WITH_ERROR

public static final Collection.Key SKIP_WITH_ERROR

NAMING_STRATEGY

public static final Collection.Key NAMING_STRATEGY
Method Detail

load

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

load

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

hash

public String hash()

autogenmap

public boolean autogenmap()
Returns:
the autogenmap

getCatalog

public String getCatalog()
Returns:
the catalog

getCfcLocations

public Resource[] getCfcLocations()
Returns:
the cfcLocation

isDefaultCfcLocation

public boolean isDefaultCfcLocation()

getDbCreate

public int getDbCreate()
Returns:
the dbCreate

getDialect

public String getDialect()
Returns:
the dialect

eventHandling

public boolean eventHandling()
Returns:
the eventHandling

eventHandler

public String eventHandler()

namingStrategy

public String namingStrategy()

flushAtRequestEnd

public boolean flushAtRequestEnd()
Returns:
the flushAtRequestEnd

logSQL

public boolean logSQL()
Returns:
the logSQL

saveMapping

public boolean saveMapping()
Returns:
the saveMapping

getSchema

public String getSchema()
Returns:
the schema

secondaryCacheEnabled

public boolean secondaryCacheEnabled()
Returns:
the secondaryCacheEnabled

getSqlScript

public Resource getSqlScript()
Returns:
the sqlScript

useDBForMapping

public boolean useDBForMapping()
Returns:
the useDBForMapping

getCacheConfig

public Resource getCacheConfig()
Returns:
the cacheConfig

getCacheProvider

public String getCacheProvider()
Returns:
the cacheProvider

getOrmConfig

public Resource getOrmConfig()
Returns:
the ormConfig

skipCFCWithError

public boolean skipCFCWithError()

autoManageSession

public boolean autoManageSession()

toStruct

public Object toStruct()

dbCreateAsInt

public static int dbCreateAsInt(String dbCreate)

dbCreateAsString

public static String dbCreateAsString(int dbCreate)


Copyright © 2012 Railo