| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.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
public class AttributeEvent
Represents events resulted from Attribute changes in CayenneModeler. This event is used for both ObjAttributes and DbAttributes.
| Field Summary | |
|---|---|
| protected  Attribute | attribute | 
| Fields inherited from class org.apache.cayenne.map.event.EntityEvent | 
|---|
| entity | 
| Fields inherited from class org.apache.cayenne.map.event.MapEvent | 
|---|
| ADD, CHANGE, domain, id, oldName, oldNameSet, REMOVE | 
| Fields inherited from class org.apache.cayenne.event.CayenneEvent | 
|---|
| info, postedBy, subject | 
| Fields inherited from class java.util.EventObject | 
|---|
| source | 
| Constructor Summary | |
|---|---|
| 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. | |
| Method Summary | |
|---|---|
|  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. | 
| Methods inherited from class org.apache.cayenne.map.event.EntityEvent | 
|---|
| getEntity, setEntity | 
| Methods inherited from class org.apache.cayenne.map.event.MapEvent | 
|---|
| getDomain, getId, getOldName, isNameChange, setDomain, setId, setOldName | 
| Methods inherited from class org.apache.cayenne.event.CayenneEvent | 
|---|
| getInfo, getPostedBy, getSubject, setPostedBy, setSubject | 
| 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 | 
| Field Detail | 
|---|
protected Attribute attribute
| Constructor Detail | 
|---|
public AttributeEvent(Object src,
                      Attribute attr,
                      Entity entity)
public AttributeEvent(Object src,
                      Attribute attr,
                      Entity entity,
                      int id)
public AttributeEvent(Object src,
                      Attribute attr,
                      Entity entity,
                      String oldName)
| Method Detail | 
|---|
public Attribute getAttribute()
public void setAttribute(Attribute attribute)
attribute - The attribute to setpublic String getNewName()
MapEvent
getNewName in class EntityEvent| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||