| 
 | ||||||||||
| 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
public abstract class MapEvent
Superclass of CayenneModeler events.
| Field Summary | |
|---|---|
| static int | ADDA type that describes object creation events. | 
| static int | CHANGEA type that describes object modification events. | 
| protected  DataDomain | domainDomain of event object. | 
| protected  int | id | 
| protected  String | oldName | 
| protected  boolean | oldNameSet | 
| static int | REMOVEA type that describes object removal events. | 
| Fields inherited from class org.apache.cayenne.event.CayenneEvent | 
|---|
| info, postedBy, subject | 
| Fields inherited from class java.util.EventObject | 
|---|
| source | 
| Constructor Summary | |
|---|---|
| MapEvent(Object source)Constructor for MapEvent. | |
| MapEvent(Object source,
         String oldName)Constructor for MapEvent. | |
| Method Summary | |
|---|---|
|  DataDomain | getDomain() | 
|  int | getId()Returns the id. | 
| abstract  String | getNewName()Returns the newName of the object that caused this event. | 
|  String | getOldName()Returns the oldName. | 
|  boolean | isNameChange() | 
|  void | setDomain(DataDomain domain)Sets domain of event object. | 
|  void | setId(int id)Sets the id. | 
|  void | setOldName(String oldName)Sets the oldName. | 
| 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 | 
|---|
public static final int CHANGE
public static final int ADD
public static final int REMOVE
protected int id
protected String oldName
protected boolean oldNameSet
protected DataDomain domain
| Constructor Detail | 
|---|
public MapEvent(Object source)
source - event source
public MapEvent(Object source,
                String oldName)
source - event source| Method Detail | 
|---|
public boolean isNameChange()
public int getId()
public abstract String getNewName()
public String getOldName()
public void setId(int id)
public void setOldName(String oldName)
public void setDomain(DataDomain domain)
public DataDomain getDomain()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||