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