public class DataNodeDescriptor extends Object implements ConfigurationNode, XMLSerializable, Serializable, Comparable<DataNodeDescriptor>
DataNode
configuration.Modifier and Type | Field and Description |
---|---|
protected String |
adapterType |
protected Resource |
configurationSource |
protected DataChannelDescriptor |
dataChannelDescriptor |
protected Collection<String> |
dataMapNames |
protected DataSourceInfo |
dataSourceDescriptor |
protected String |
dataSourceFactoryType |
protected String |
name |
protected String |
parameters |
protected String |
schemaUpdateStrategyType |
Constructor and Description |
---|
DataNodeDescriptor() |
DataNodeDescriptor(String name) |
protected String name
protected Collection<String> dataMapNames
protected String parameters
protected String adapterType
protected String dataSourceFactoryType
protected String schemaUpdateStrategyType
protected DataSourceInfo dataSourceDescriptor
protected Resource configurationSource
protected DataChannelDescriptor dataChannelDescriptor
public DataNodeDescriptor()
public DataNodeDescriptor(String name)
public DataChannelDescriptor getDataChannelDescriptor()
public void setDataChannelDescriptor(DataChannelDescriptor dataChannelDescriptor)
public int compareTo(DataNodeDescriptor o)
compareTo
in interface Comparable<DataNodeDescriptor>
public <T> T acceptVisitor(ConfigurationNodeVisitor<T> visitor)
acceptVisitor
in interface ConfigurationNode
public void encodeAsXML(XMLEncoder encoder)
XMLSerializable
encodeAsXML
in interface XMLSerializable
public String getName()
public void setName(String name)
public Collection<String> getDataMapNames()
public String getParameters()
DataSourceFactory
to configure a DataSource. E.g. JNDIDataSoirceFactory may
treat parameters String as a JNDI location of the DataSource, etc.public void setParameters(String parameters)
DataSourceFactory
to configure a DataSource. E.g. JNDIDataSoirceFactory may
treat parameters String as a JNDI location of the DataSource, etc.public String getAdapterType()
public void setAdapterType(String adapter)
public String getDataSourceFactoryType()
public void setDataSourceFactoryType(String dataSourceFactory)
public String getSchemaUpdateStrategyType()
public void setSchemaUpdateStrategyType(String schemaUpdateStrategyClass)
public DataSourceInfo getDataSourceDescriptor()
public void setDataSourceDescriptor(DataSourceInfo dataSourceDescriptor)
public Resource getConfigurationSource()
DataChannelDescriptor
.public void setConfigurationSource(Resource configurationResource)
DataChannelDescriptor
and has to be synchronized when it
changes in the parent.Copyright © 2001–2014 Apache Cayenne. All rights reserved.