Package org.apache.cayenne.configuration
Class DataNodeDescriptor
java.lang.Object
org.apache.cayenne.configuration.DataNodeDescriptor
- All Implemented Interfaces:
- Serializable,- Comparable<DataNodeDescriptor>,- ConfigurationNode,- XMLSerializable
public class DataNodeDescriptor
extends Object
implements ConfigurationNode, XMLSerializable, Serializable, Comparable<DataNodeDescriptor>
A descriptor of 
DataNode configuration.- Since:
- 3.1
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Stringprotected Resourceprotected DataChannelDescriptorprotected Collection<String>protected DataSourceDescriptorprotected Stringprotected Stringprotected Stringprotected String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T> TacceptVisitor(ConfigurationNodeVisitor<T> visitor) intvoidencodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate) Prints itself as XML to the provided XMLEncoder.Returns configuration resource for this descriptor.getName()Returns extra DataNodeDescriptor parameters.voidsetAdapterType(String adapter) voidsetConfigurationSource(Resource configurationResource) Sets configuration resource for this descriptor.voidsetDataChannelDescriptor(DataChannelDescriptor dataChannelDescriptor) voidsetDataSourceDescriptor(DataSourceDescriptor dataSourceDescriptor) voidsetDataSourceFactoryType(String dataSourceFactory) voidvoidsetParameters(String parameters) Sets extra DataNodeDescriptor parameters.voidsetSchemaUpdateStrategyType(String schemaUpdateStrategyClass) 
- 
Field Details- 
name
- 
dataMapNames
- 
parameters
- 
adapterType
- 
dataSourceFactoryType
- 
schemaUpdateStrategyType
- 
dataSourceDescriptor
- 
configurationSource
- 
dataChannelDescriptor- Since:
- 3.1
 
 
- 
- 
Constructor Details- 
DataNodeDescriptorpublic DataNodeDescriptor()
- 
DataNodeDescriptor
 
- 
- 
Method Details- 
getDataChannelDescriptor- Since:
- 3.1
 
- 
setDataChannelDescriptor- Since:
- 3.1
 
- 
compareTo- Specified by:
- compareToin interface- Comparable<DataNodeDescriptor>
 
- 
acceptVisitor- Specified by:
- acceptVisitorin interface- ConfigurationNode
 
- 
encodeAsXMLDescription copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
- encodeAsXMLin interface- XMLSerializable
 
- 
getName
- 
setName
- 
getDataMapNames
- 
getParametersReturns extra DataNodeDescriptor parameters. This property is often used by customDataSourceFactoryto configure a DataSource. E.g. JNDIDataSourceFactory may treat parameters String as a JNDI location of the DataSource, etc.
- 
setParametersSets extra DataNodeDescriptor parameters. This property is often used by customDataSourceFactoryto configure a DataSource. E.g. JNDIDataSourceFactory may treat parameters String as a JNDI location of the DataSource, etc.
- 
getAdapterType
- 
setAdapterType
- 
getDataSourceFactoryType
- 
setDataSourceFactoryType
- 
getSchemaUpdateStrategyType
- 
setSchemaUpdateStrategyType
- 
getDataSourceDescriptor
- 
setDataSourceDescriptor
- 
getConfigurationSourceReturns configuration resource for this descriptor. Configuration is usually shared with the parentDataChannelDescriptor.
- 
setConfigurationSourceSets configuration resource for this descriptor. Configuration is usually shared with the parentDataChannelDescriptorand has to be synchronized when it changes in the parent.
 
-