| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.map.Attribute
org.apache.cayenne.map.ObjAttribute
org.apache.cayenne.map.EmbeddedAttribute
public class EmbeddedAttribute
An attribute of the ObjEntity that maps to an embeddable class.
| Field Summary | |
|---|---|
| protected  SortedMap<String,String> | attributeOverrides | 
| Fields inherited from class org.apache.cayenne.map.ObjAttribute | 
|---|
| dbAttributePath, type, usedForLocking | 
| Fields inherited from class org.apache.cayenne.map.Attribute | 
|---|
| entity, name | 
| Constructor Summary | |
|---|---|
| EmbeddedAttribute() | |
| EmbeddedAttribute(String name) | |
| EmbeddedAttribute(String name,
                  String type,
                  ObjEntity entity) | |
| Method Summary | |
|---|---|
|  void | addAttributeOverride(String name,
                     String dbAttributeName) | 
|  void | encodeAsXML(XMLEncoder encoder)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 Embeddableobject. | 
|  void | removeAttributeOverride(String name) | 
|  void | setType(String type)Sets a type of this attribute that must be an Embeddableobject. | 
| Methods inherited from class org.apache.cayenne.map.ObjAttribute | 
|---|
| getClientAttribute, getDbAttribute, getDbAttributeName, getDbAttributePath, getDbPathIterator, getDbPathIterator, getMaxLength, isCompound, isFlattened, isInherited, isMandatory, isPrimaryKey, isUsedForLocking, setDbAttribute, setDbAttributeName, setDbAttributePath, setUsedForLocking | 
| Methods inherited from class org.apache.cayenne.map.Attribute | 
|---|
| getEntity, getName, getParent, setEntity, setName, setParent, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
protected SortedMap<String,String> attributeOverrides
| Constructor Detail | 
|---|
public EmbeddedAttribute()
public EmbeddedAttribute(String name)
public EmbeddedAttribute(String name,
                         String type,
                         ObjEntity entity)
| Method Detail | 
|---|
public void encodeAsXML(XMLEncoder encoder)
ObjAttribute
encodeAsXML in interface XMLSerializableencodeAsXML in class ObjAttributepublic Map<String,String> getAttributeOverrides()
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 addAttributeOverride(String name,
                                 String dbAttributeName)
public void removeAttributeOverride(String name)
public String getType()
Embeddable object.
getType in class ObjAttributepublic Class<?> getJavaClass()
getJavaClass in class ObjAttributepublic void setType(String type)
Embeddable object.
setType in class ObjAttribute| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||