public class AttributeEvent extends EntityEvent
Modifier and Type | Field and Description |
---|---|
protected Attribute |
attribute |
entity
ADD, CHANGE, domain, id, oldName, oldNameSet, REMOVE
info, postedBy, subject
source
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, setEntity
getDomain, getId, getOldName, isNameChange, setDomain, setId, setOldName
getInfo, getPostedBy, getSubject, setPostedBy, setSubject
getSource, toString
protected 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()
MapEvent
getNewName
in class EntityEvent
Copyright © 2001–2019 Apache Cayenne. All rights reserved.