Package org.apache.cayenne.configuration
Class DataChannelDescriptor
java.lang.Object
org.apache.cayenne.configuration.DataChannelDescriptor
- All Implemented Interfaces:
Serializable
,ConfigurationNode
,XMLSerializable
public class DataChannelDescriptor
extends Object
implements ConfigurationNode, Serializable, XMLSerializable
A descriptor of a DataChannel normally loaded from XML configuration.
- Since:
- 3.1
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected Resource
protected Collection
<DataMap> protected String
protected String
protected Collection
<DataNodeDescriptor> static final String
The namespace in which the data map XML file will be created.static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
acceptVisitor
(ConfigurationNodeVisitor<T> visitor) void
encodeAsXML
(XMLEncoder encoder, ConfigurationNodeVisitor delegate) Prints itself as XML to the provided XMLEncoder.getDataMap
(String name) Returns the name of the DataNode that should be used as the default if a DataMap is not explicitly linked to a node.getName()
getNodeDescriptor
(String name) void
setConfigurationSource
(Resource configurationSource) void
setDefaultNodeName
(String defaultDataNodeName) void
-
Field Details
-
SCHEMA_XSD
The namespace in which the data map XML file will be created.- See Also:
-
SCHEMA_XSD_LOCATION
- See Also:
-
name
-
properties
-
dataMaps
-
nodeDescriptors
-
configurationSource
-
defaultNodeName
-
-
Constructor Details
-
DataChannelDescriptor
public DataChannelDescriptor()
-
-
Method Details
-
encodeAsXML
Description copied from interface:XMLSerializable
Prints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXML
in interfaceXMLSerializable
-
acceptVisitor
- Specified by:
acceptVisitor
in interfaceConfigurationNode
-
getName
-
setName
-
getProperties
-
getDataMaps
-
getDataMap
-
getNodeDescriptors
-
getNodeDescriptor
-
getConfigurationSource
-
setConfigurationSource
-
getDefaultNodeName
Returns the name of the DataNode that should be used as the default if a DataMap is not explicitly linked to a node. -
setDefaultNodeName
-