|
||||||||||
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 Map<String,DataDomain> |
domains
|
protected MapLoader |
mapLoader
|
protected long |
startTime
|
protected ConfigStatus |
status
|
protected Map<String,String> |
views
|
Constructor Summary | |
---|---|
RuntimeLoadDelegate(Configuration config,
ConfigStatus status)
|
Method Summary | |
---|---|
protected DataNode |
createDataNode(String nodeName)
Creates a new DataNode. |
protected DataDomain |
findDomain(String name)
|
protected DataMap |
findMap(String domainName,
String mapName)
|
protected DataNode |
findNode(String domainName,
String nodeName)
|
void |
finishedLoading()
Callback methods invoked at the end of the configuration processing. |
Configuration |
getConfig()
Returns the config. |
Map<String,DataDomain> |
getDomains()
Returns the domains. |
protected MapLoader |
getMapLoader()
|
ConfigStatus |
getStatus()
Returns the status. |
protected void |
initAdapter(DataNode node,
String adapterName)
Intializes DataNode adapter. |
protected DataMap |
loadDataMap(DataDomain domain,
String mapName,
Map locations)
Returns DataMap for the name and location information. |
boolean |
loadError(Throwable th)
Gives delegate an opportunity to process the error. |
void |
setConfig(Configuration config)
Sets the config. |
void |
shouldLinkDataMap(String domainName,
String nodeName,
String mapName)
|
void |
shouldLoadDataDomain(String domainName)
Callback method invoked when a domain is encountered in the configuration file. |
void |
shouldLoadDataDomainProperties(String domainName,
Map<String,String> properties)
|
void |
shouldLoadDataMaps(String domainName,
Map<String,DataMap> locations)
|
void |
shouldLoadDataNode(String domainName,
String nodeName,
String dataSource,
String adapter,
String factory,
String schemaUpdateStrategy)
|
void |
shouldLoadProjectVersion(String version)
Callback method invoked when a project version is read. |
void |
shouldRegisterDataView(String name,
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 Map<String,DataDomain> domains
protected Map<String,String> views
protected ConfigStatus status
protected Configuration config
protected long startTime
protected MapLoader mapLoader
Constructor Detail |
---|
public RuntimeLoadDelegate(Configuration config, ConfigStatus status)
Method Detail |
---|
protected DataDomain findDomain(String name) throws org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
protected DataMap findMap(String domainName, String mapName) throws org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
protected DataNode findNode(String domainName, String nodeName) throws org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
org.apache.cayenne.conf.RuntimeLoadDelegate.FindException
public boolean loadError(Throwable th)
ConfigLoaderDelegate
loadError
in interface ConfigLoaderDelegate
public void shouldLoadProjectVersion(String version)
ConfigLoaderDelegate
shouldLoadProjectVersion
in interface ConfigLoaderDelegate
public void shouldRegisterDataView(String name, String location)
ConfigLoaderDelegate
shouldRegisterDataView
in interface ConfigLoaderDelegate
public void shouldLoadDataDomainProperties(String domainName, Map<String,String> properties)
shouldLoadDataDomainProperties
in interface ConfigLoaderDelegate
public void shouldLoadDataDomain(String domainName)
ConfigLoaderDelegate
shouldLoadDataDomain
in interface ConfigLoaderDelegate
domainName
- domain name.public void shouldLoadDataMaps(String domainName, Map<String,DataMap> locations)
shouldLoadDataMaps
in interface ConfigLoaderDelegate
protected MapLoader getMapLoader()
protected DataMap loadDataMap(DataDomain domain, String mapName, Map locations)
protected DataNode createDataNode(String nodeName)
public void shouldLoadDataNode(String domainName, String nodeName, String dataSource, String adapter, String factory, String schemaUpdateStrategy)
shouldLoadDataNode
in interface ConfigLoaderDelegate
protected void initAdapter(DataNode node, String adapterName)
public void shouldLinkDataMap(String domainName, String nodeName, String mapName)
shouldLinkDataMap
in interface ConfigLoaderDelegate
public Map<String,DataDomain> getDomains()
public ConfigStatus getStatus()
getStatus
in interface ConfigLoaderDelegate
public Configuration getConfig()
public void setConfig(Configuration config)
config
- The config to setpublic void finishedLoading()
ConfigLoaderDelegate
finishedLoading
in interface ConfigLoaderDelegate
ConfigLoaderDelegate.finishedLoading()
public void startedLoading()
ConfigLoaderDelegate
startedLoading
in interface ConfigLoaderDelegate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |