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:
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 XMLSerializable
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidencodeAsXML(XMLEncoder encoder, ProjectNodeVisitor<?> delegate) Prints itself as XML to the provided XMLEncoder.Returns parent entity that holds this attribute.getName()voidSets parent entity that holds this attribute.voidtoString()
-
Field Details
-
name
-
entity
-
-
Constructor Details
-
Attribute
public Attribute()Creates an unnamed Attribute. -
Attribute
Creates a named Attribute.
-
-
Method Details
-
toString
-
encodeAsXML
Description copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXMLin interfaceXMLSerializable
-
getEntity
-
setEntity
-
getName
-
setName
-