public abstract class Attribute extends Object implements CayenneMapEntry, XMLSerializable, Serializable
Modifier and Type | Field and Description |
---|---|
protected Entity |
entity |
protected String |
name |
Constructor and Description |
---|
Attribute()
Creates an unnamed Attribute.
|
Attribute(String name)
Creates a named Attribute.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString() |
public Attribute()
public Attribute(String name)
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
Copyright © 2001–2015 Apache Cayenne. All rights reserved.