|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.map.Attribute
public abstract class Attribute
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 | |
---|---|
protected Entity |
entity
|
protected String |
name
|
Constructor Summary | |
---|---|
Attribute()
Creates an unnamed Attribute. |
|
Attribute(String name)
Creates a named Attribute. |
Method Summary | |
---|---|
abstract void |
encodeAsXML(XMLEncoder encoder)
Prints itself as XML to the provided XMLEncoder. |
Entity |
getEntity()
Returns parent entity that holds this attribute. |
String |
getName()
Returns the name property of this object. |
Object |
getParent()
Returns the parent map. |
void |
setEntity(Entity entity)
Sets parent entity that holds this attribute. |
void |
setName(String name)
|
void |
setParent(Object parent)
Stores the parent map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected Entity entity
Constructor Detail |
---|
public Attribute()
public Attribute(String name)
Method Detail |
---|
public abstract void encodeAsXML(XMLEncoder encoder)
XMLSerializable
encodeAsXML
in interface XMLSerializable
public Entity getEntity()
public void setEntity(Entity entity)
public String getName()
CayenneMapEntry
getName
in interface CayenneMapEntry
public void setName(String name)
public Object getParent()
CayenneMapEntry
getParent
in interface CayenneMapEntry
public void setParent(Object parent)
CayenneMapEntry
setParent
in interface CayenneMapEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |