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 Summary
Modifier and TypeFieldDescriptionprotected String
protected Resource
protected DataChannelDescriptor
protected Collection
<String> protected DataSourceInfo
protected String
protected String
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
acceptVisitor
(ConfigurationNodeVisitor<T> visitor) int
void
encodeAsXML
(XMLEncoder encoder, ConfigurationNodeVisitor delegate) Prints itself as XML to the provided XMLEncoder.Returns configuration resource for this descriptor.getName()
Returns extra DataNodeDescriptor parameters.void
setAdapterType
(String adapter) void
setConfigurationSource
(Resource configurationResource) Sets configuration resource for this descriptor.void
setDataChannelDescriptor
(DataChannelDescriptor dataChannelDescriptor) void
setDataSourceDescriptor
(DataSourceInfo dataSourceDescriptor) void
setDataSourceFactoryType
(String dataSourceFactory) void
void
setParameters
(String parameters) Sets extra DataNodeDescriptor parameters.void
setSchemaUpdateStrategyType
(String schemaUpdateStrategyClass)
-
Field Details
-
name
-
dataMapNames
-
parameters
-
adapterType
-
dataSourceFactoryType
-
schemaUpdateStrategyType
-
dataSourceDescriptor
-
configurationSource
-
dataChannelDescriptor
- Since:
- 3.1
-
-
Constructor Details
-
DataNodeDescriptor
public DataNodeDescriptor() -
DataNodeDescriptor
-
-
Method Details
-
getDataChannelDescriptor
- Since:
- 3.1
-
setDataChannelDescriptor
- Since:
- 3.1
-
compareTo
- Specified by:
compareTo
in interfaceComparable<DataNodeDescriptor>
-
acceptVisitor
- Specified by:
acceptVisitor
in interfaceConfigurationNode
-
encodeAsXML
Description copied from interface:XMLSerializable
Prints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXML
in interfaceXMLSerializable
-
getName
-
setName
-
getDataMapNames
-
getParameters
Returns extra DataNodeDescriptor parameters. This property is often used by customDataSourceFactory
to configure a DataSource. E.g. JNDIDataSourceFactory may treat parameters String as a JNDI location of the DataSource, etc. -
setParameters
Sets extra DataNodeDescriptor parameters. This property is often used by customDataSourceFactory
to 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
-
getConfigurationSource
Returns configuration resource for this descriptor. Configuration is usually shared with the parentDataChannelDescriptor
. -
setConfigurationSource
Sets configuration resource for this descriptor. Configuration is usually shared with the parentDataChannelDescriptor
and has to be synchronized when it changes in the parent.
-