org.apache.cayenne.map.event
Class AttributeEvent
java.lang.Object
java.util.EventObject
org.apache.cayenne.event.CayenneEvent
org.apache.cayenne.map.event.MapEvent
org.apache.cayenne.map.event.EntityEvent
org.apache.cayenne.map.event.AttributeEvent
- All Implemented Interfaces:
- java.io.Serializable
public class AttributeEvent
- extends EntityEvent
Represents events resulted from Attribute changes
in CayenneModeler. This event is used for both ObjAttributes
and DbAttributes.
- Author:
- Misha Shengaout, Andrei Adamchik
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
attribute
protected Attribute attribute
AttributeEvent
public AttributeEvent(java.lang.Object src,
Attribute attr,
Entity entity)
- Creates a Attribute change event.
AttributeEvent
public AttributeEvent(java.lang.Object src,
Attribute attr,
Entity entity,
int id)
- Creates a Attribute event of a specified type.
AttributeEvent
public AttributeEvent(java.lang.Object src,
Attribute attr,
Entity entity,
java.lang.String oldName)
- Creates a Attribute name change event.
getAttribute
public Attribute getAttribute()
- Get attribute (obj or db).
setAttribute
public void setAttribute(Attribute attribute)
- Sets the attribute.
- Parameters:
attribute
- The attribute to set
getNewName
public java.lang.String getNewName()
- Description copied from class:
MapEvent
- Returns the newName of the object that caused this event.
- Overrides:
getNewName
in class EntityEvent
Copyright © 2001-2006 Apache.org All Rights Reserved.