public class AttributeEvent extends EntityEvent
| Modifier and Type | Field and Description |
|---|---|
protected Attribute |
attribute |
entityADD, CHANGE, domain, id, oldName, oldNameSet, REMOVEinfo, postedBy, subjectsource| Constructor and Description |
|---|
AttributeEvent(Object src,
Attribute attr,
Entity entity)
Creates a Attribute change event.
|
AttributeEvent(Object src,
Attribute attr,
Entity entity,
int id)
Creates a Attribute event of a specified type.
|
AttributeEvent(Object src,
Attribute attr,
Entity entity,
String oldName)
Creates a Attribute name change event.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute()
Get attribute (obj or db).
|
String |
getNewName()
Returns the newName of the object that caused this event.
|
void |
setAttribute(Attribute attribute)
Sets the attribute.
|
getEntity, setEntitygetDomain, getId, getOldName, isNameChange, setDomain, setId, setOldNamegetInfo, getPostedBy, getSubject, setPostedBy, setSubjectgetSource, toStringprotected Attribute attribute
public AttributeEvent(Object src, Attribute attr, Entity entity)
public AttributeEvent(Object src, Attribute attr, Entity entity, int id)
public Attribute getAttribute()
public void setAttribute(Attribute attribute)
attribute - The attribute to setpublic String getNewName()
MapEventgetNewName in class EntityEventCopyright © 2001–2023 Apache Cayenne. All rights reserved.