public class EmbeddedAttribute extends ObjAttribute
Modifier and Type | Field and Description |
---|---|
protected SortedMap<String,String> |
attributeOverrides |
dbAttributePath, type, usedForLocking
Constructor and Description |
---|
EmbeddedAttribute() |
EmbeddedAttribute(String name) |
EmbeddedAttribute(String name,
String type,
ObjEntity entity) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeOverride(String name,
String dbAttributeName) |
void |
encodeAsXML(XMLEncoder encoder,
ConfigurationNodeVisitor delegate)
Prints itself as XML to the provided XMLEncoder.
|
ObjAttribute |
getAttribute(String name)
Returns an ObjAttribute for a given name, taking into account column name
overrides.
|
ObjAttribute |
getAttributeForDbPath(String dbPath)
Returns an ObjAttribute that maps to a given
DbAttribute , or returns null
if no such attribute exists. |
Map<String,String> |
getAttributeOverrides() |
Collection<ObjAttribute> |
getAttributes()
Returns a Collection of ObjAttributes of an embedded object taking into account
column name overrides.
|
Embeddable |
getEmbeddable() |
Class<?> |
getJavaClass()
Returns Java class of an object property described by this attribute.
|
String |
getType()
Returns a type of this attribute that must be an
Embeddable object. |
void |
removeAttributeOverride(String name) |
void |
setType(String type)
Sets a type of this attribute that must be an
Embeddable object. |
acceptVisitor, getClientAttribute, getDbAttribute, getDbAttributeName, getDbAttributePath, getDbPathIterator, getDbPathIterator, getEntity, getMaxLength, isFlattened, isInherited, isMandatory, isPrimaryKey, isUsedForLocking, setDbAttributePath, setUsedForLocking, toString, updateDbAttributePath
public EmbeddedAttribute()
public EmbeddedAttribute(String name)
public void encodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor delegate)
ObjAttribute
encodeAsXML
in interface XMLSerializable
encodeAsXML
in class ObjAttribute
public Embeddable getEmbeddable()
public ObjAttribute getAttributeForDbPath(String dbPath)
DbAttribute
, or returns null
if no such attribute exists.public ObjAttribute getAttribute(String name)
public Collection<ObjAttribute> getAttributes()
public void removeAttributeOverride(String name)
public String getType()
Embeddable
object.getType
in class ObjAttribute
public Class<?> getJavaClass()
getJavaClass
in class ObjAttribute
public void setType(String type)
Embeddable
object.setType
in class ObjAttribute
Copyright © 2001–2017 Apache Cayenne. All rights reserved.