|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.conf.RuntimeLoadDelegate
public class RuntimeLoadDelegate
Implementation of ConfigLoaderDelegate that creates Cayenne access objects stack.
Field Summary | |
---|---|
protected Configuration |
config
|
protected java.util.Map |
domains
|
protected long |
startTime
|
protected ConfigStatus |
status
|
protected java.util.Map |
views
|
Constructor Summary | |
---|---|
RuntimeLoadDelegate(Configuration config,
ConfigStatus status)
|
|
RuntimeLoadDelegate(Configuration config,
ConfigStatus status,
org.apache.log4j.Level logLevel)
Deprecated. since 1.2 |
Method Summary | |
---|---|
protected DataNode |
createDataNode(java.lang.String nodeName)
Creates a new DataNode. |
protected DataDomain |
findDomain(java.lang.String name)
|
protected DataMap |
findMap(java.lang.String domainName,
java.lang.String mapName)
|
protected DataNode |
findNode(java.lang.String domainName,
java.lang.String nodeName)
|
void |
finishedLoading()
Callback methods invoked at the end of the configuration processing. |
Configuration |
getConfig()
Returns the config. |
java.util.Map |
getDomains()
Returns the domains. |
org.apache.log4j.Level |
getLogLevel()
Deprecated. since 1.2 |
ConfigStatus |
getStatus()
Returns the status. |
protected void |
initAdapter(DataNode node,
java.lang.String adapterName)
Intializes DataNode adapter. |
protected DataMap |
loadDataMap(DataDomain domain,
java.lang.String mapName,
java.util.Map locations)
Returns DataMap for the name and location information. |
boolean |
loadError(java.lang.Throwable th)
Gives delegate an opportunity to process the error. |
void |
setConfig(Configuration config)
Sets the config. |
void |
setLogLevel(org.apache.log4j.Level logLevel)
Deprecated. since 1.2 |
void |
shouldLinkDataMap(java.lang.String domainName,
java.lang.String nodeName,
java.lang.String mapName)
|
void |
shouldLoadDataDomain(java.lang.String domainName)
Callback method invoked when a domain is encountered in the configuration file. |
void |
shouldLoadDataDomainProperties(java.lang.String domainName,
java.util.Map properties)
|
void |
shouldLoadDataMaps(java.lang.String domainName,
java.util.Map locations)
|
void |
shouldLoadDataNode(java.lang.String domainName,
java.lang.String nodeName,
java.lang.String dataSource,
java.lang.String adapter,
java.lang.String factory)
|
void |
shouldLoadProjectVersion(java.lang.String version)
Callback method invoked when a project version is read. |
void |
shouldRegisterDataView(java.lang.String name,
java.lang.String location)
Callback method invoked when a DataView reference is encountered in the configuration file. |
void |
startedLoading()
Callback methods invoked in the beginning of the configuration processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map domains
protected java.util.Map views
protected ConfigStatus status
protected Configuration config
protected long startTime
Constructor Detail |
---|
public RuntimeLoadDelegate(Configuration config, ConfigStatus status, org.apache.log4j.Level logLevel)
public RuntimeLoadDelegate(Configuration config, ConfigStatus status)
Method Detail |
---|
protected DataDomain findDomain(java.lang.String name) throws org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
protected DataMap findMap(java.lang.String domainName, java.lang.String mapName) throws org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
protected DataNode findNode(java.lang.String domainName, java.lang.String nodeName) throws org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
public boolean loadError(java.lang.Throwable th)
ConfigLoaderDelegate
loadError
in interface ConfigLoaderDelegate
public void shouldLoadProjectVersion(java.lang.String version)
ConfigLoaderDelegate
shouldLoadProjectVersion
in interface ConfigLoaderDelegate
public void shouldRegisterDataView(java.lang.String name, java.lang.String location)
ConfigLoaderDelegate
shouldRegisterDataView
in interface ConfigLoaderDelegate
public void shouldLoadDataDomainProperties(java.lang.String domainName, java.util.Map properties)
shouldLoadDataDomainProperties
in interface ConfigLoaderDelegate
public void shouldLoadDataDomain(java.lang.String domainName)
ConfigLoaderDelegate
shouldLoadDataDomain
in interface ConfigLoaderDelegate
domainName
- domain name.public void shouldLoadDataMaps(java.lang.String domainName, java.util.Map locations)
shouldLoadDataMaps
in interface ConfigLoaderDelegate
protected DataMap loadDataMap(DataDomain domain, java.lang.String mapName, java.util.Map locations)
protected DataNode createDataNode(java.lang.String nodeName)
public void shouldLoadDataNode(java.lang.String domainName, java.lang.String nodeName, java.lang.String dataSource, java.lang.String adapter, java.lang.String factory)
shouldLoadDataNode
in interface ConfigLoaderDelegate
protected void initAdapter(DataNode node, java.lang.String adapterName)
public void shouldLinkDataMap(java.lang.String domainName, java.lang.String nodeName, java.lang.String mapName)
shouldLinkDataMap
in interface ConfigLoaderDelegate
public java.util.Map getDomains()
public ConfigStatus getStatus()
getStatus
in interface ConfigLoaderDelegate
public Configuration getConfig()
public void setConfig(Configuration config)
config
- The config to setpublic org.apache.log4j.Level getLogLevel()
public void setLogLevel(org.apache.log4j.Level logLevel)
public void finishedLoading()
ConfigLoaderDelegate
finishedLoading
in interface ConfigLoaderDelegate
ConfigLoaderDelegate.finishedLoading()
public void startedLoading()
ConfigLoaderDelegate
startedLoading
in interface ConfigLoaderDelegate
ConfigLoaderDelegate.startedLoading()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |