org.apache.cayenne.configuration
Class DefaultConfigurationNameMapper
java.lang.Object
org.apache.cayenne.configuration.DefaultConfigurationNameMapper
- All Implemented Interfaces:
- ConfigurationNameMapper
public class DefaultConfigurationNameMapper
- extends Object
- implements ConfigurationNameMapper
- Since:
- 3.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nameMapper
protected ConfigurationNodeVisitor<String> nameMapper
DefaultConfigurationNameMapper
public DefaultConfigurationNameMapper()
configurationLocation
public String configurationLocation(ConfigurationNode node)
- Description copied from interface:
ConfigurationNameMapper
- Returns the name of a configuration resource based on a naming convention for a
given node type.
- Specified by:
configurationLocation
in interface ConfigurationNameMapper
configurationLocation
public String configurationLocation(Class<? extends ConfigurationNode> type,
String name)
- Description copied from interface:
ConfigurationNameMapper
- Returns the name of a configuration resource based on a naming convention for a
given node type.
- Specified by:
configurationLocation
in interface ConfigurationNameMapper
configurationNodeName
public String configurationNodeName(Class<? extends ConfigurationNode> type,
Resource resource)
- Description copied from interface:
ConfigurationNameMapper
- Returns a node name for a given configuration type and a configuration resource.
This operation is the opposite of the
ConfigurationNameMapper.configurationLocation(Class, String)
. May return null if the resource name is not following the expected naming format.
- Specified by:
configurationNodeName
in interface ConfigurationNameMapper
getDataChannelName
protected String getDataChannelName(String name)
getDataMapName
protected String getDataMapName(String name)
Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.