Class DefaultConfigurationNameMapper
java.lang.Object
org.apache.cayenne.project.DefaultConfigurationNameMapper
- All Implemented Interfaces:
ConfigurationNameMapper
- Since:
- 3.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfigurationLocation(Class<? extends ProjectNode> type, String name) Returns the name of a configuration resource based on a naming convention for a given node type.Returns the name of a configuration resource based on a naming convention for a given node type.protected StringgetDataChannelName(String name) protected StringgetDataMapName(String name) projectNodeName(Class<? extends ProjectNode> type, Resource resource) Returns a node name for a given configuration type and a configuration resource.
-
Field Details
-
nameMapper
-
-
Constructor Details
-
DefaultConfigurationNameMapper
public DefaultConfigurationNameMapper()
-
-
Method Details
-
configurationLocation
Description copied from interface:ConfigurationNameMapperReturns the name of a configuration resource based on a naming convention for a given node type.- Specified by:
configurationLocationin interfaceConfigurationNameMapper
-
configurationLocation
Description copied from interface:ConfigurationNameMapperReturns the name of a configuration resource based on a naming convention for a given node type.- Specified by:
configurationLocationin interfaceConfigurationNameMapper
-
projectNodeName
Description copied from interface:ConfigurationNameMapperReturns a node name for a given configuration type and a configuration resource. This operation is the opposite of theConfigurationNameMapper.configurationLocation(Class, String). May return null if the resource name is not following the expected naming format.- Specified by:
projectNodeNamein interfaceConfigurationNameMapper
-
getDataChannelName
-
getDataMapName
-