Package org.apache.cayenne.map
Class Attribute<E extends Entity<E,A,R>,A extends Attribute<E,A,R>,R extends Relationship<E,A,R>>        
java.lang.Object
org.apache.cayenne.map.Attribute<E,A,R>  
- All Implemented Interfaces:
- Serializable,- CayenneMapEntry,- XMLSerializable
- Direct Known Subclasses:
- DbAttribute,- ObjAttribute
public abstract class Attribute<E extends Entity<E,A,R>,A extends Attribute<E,A,R>,R extends Relationship<E,A,R>>        
extends Object
implements CayenneMapEntry, XMLSerializable, Serializable
Defines a property descriptor that is a part of an Entity. Two examples of things that
 are described by attributes are Java class properties and database table columns.
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidencodeAsXML(XMLEncoder encoder, ConfigurationNodeVisitor<?> delegate) Prints itself as XML to the provided XMLEncoder.Returns parent entity that holds this attribute.getName()Returns the name property of this object.Returns the parent map.voidSets parent entity that holds this attribute.voidvoidStores the parent map.toString()
- 
Field Details- 
name
- 
entity
 
- 
- 
Constructor Details- 
Attributepublic Attribute()Creates an unnamed Attribute.
- 
AttributeCreates a named Attribute.
 
- 
- 
Method Details- 
toString
- 
encodeAsXMLDescription copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
- encodeAsXMLin interface- XMLSerializable
 
- 
getEntityReturns parent entity that holds this attribute.
- 
setEntitySets parent entity that holds this attribute.
- 
getNameDescription copied from interface:CayenneMapEntryReturns the name property of this object.- Specified by:
- getNamein interface- CayenneMapEntry
- Returns:
- name of this entry.
 
- 
setName
- 
getParentDescription copied from interface:CayenneMapEntryReturns the parent map.- Specified by:
- getParentin interface- CayenneMapEntry
 
- 
setParentDescription copied from interface:CayenneMapEntryStores the parent map.- Specified by:
- setParentin interface- CayenneMapEntry
 
 
-