Package org.apache.cayenne.map
Class EmbeddableAttribute
- java.lang.Object
-
- org.apache.cayenne.map.EmbeddableAttribute
-
- All Implemented Interfaces:
Serializable,ConfigurationNode,XMLSerializable
public class EmbeddableAttribute extends Object implements ConfigurationNode, XMLSerializable, Serializable
A persistent attribute of an embeddable object.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdbAttributeNameprotected Embeddableembeddableprotected Stringnameprotected Stringtype
-
Constructor Summary
Constructors Constructor Description EmbeddableAttribute()EmbeddableAttribute(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TacceptVisitor(ConfigurationNodeVisitor<T> visitor)voidencodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate)Prints itself as XML to the provided XMLEncoder.StringgetDbAttributeName()EmbeddablegetEmbeddable()StringgetName()StringgetType()voidsetDbAttributeName(String dbAttributeName)voidsetEmbeddable(Embeddable embeddable)voidsetName(String name)voidsetType(String type)
-
-
-
Field Detail
-
name
protected String name
-
type
protected String type
-
dbAttributeName
protected String dbAttributeName
-
embeddable
protected Embeddable embeddable
-
-
Constructor Detail
-
EmbeddableAttribute
public EmbeddableAttribute()
-
EmbeddableAttribute
public EmbeddableAttribute(String name)
-
-
Method Detail
-
acceptVisitor
public <T> T acceptVisitor(ConfigurationNodeVisitor<T> visitor)
- Specified by:
acceptVisitorin interfaceConfigurationNode- Since:
- 3.1
-
encodeAsXML
public void encodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate)
Description copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXMLin interfaceXMLSerializable
-
getDbAttributeName
public String getDbAttributeName()
-
setDbAttributeName
public void setDbAttributeName(String dbAttributeName)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getEmbeddable
public Embeddable getEmbeddable()
-
setEmbeddable
public void setEmbeddable(Embeddable embeddable)
-
-