Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.map.event
Class MapEvent  view MapEvent download MapEvent.java

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.objectstyle.cayenne.event.CayenneEvent
          extended byorg.objectstyle.cayenne.map.event.MapEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DataMapEvent, DataNodeEvent, DomainEvent, EntityEvent, ProcedureEvent, ProcedureParameterEvent

public abstract class MapEvent
extends org.objectstyle.cayenne.event.CayenneEvent

Superclass of CayenneModeler events.


Field Summary
static int ADD
          Signifies a new object.
static int CHANGE
          Signifies a changed object.
protected  int id
           
protected  java.lang.String oldName
           
static int REMOVE
          Signifies a removed object.
 
Fields inherited from class org.objectstyle.cayenne.event.CayenneEvent
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MapEvent(java.lang.Object source)
          Constructor for MapEvent.
MapEvent(java.lang.Object source, java.lang.String oldName)
          Constructor for MapEvent.
 
Method Summary
 int getId()
          Returns the id.
abstract  java.lang.String getNewName()
          Returns the newName of the object that caused this event.
 java.lang.String getOldName()
          Returns the oldName.
 boolean isNameChange()
           
 void setId(int id)
          Sets the id.
 void setOldName(java.lang.String oldName)
          Sets the oldName.
 
Methods inherited from class org.objectstyle.cayenne.event.CayenneEvent
getInfo
 
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

CHANGE

public static final int CHANGE
Signifies a changed object.

See Also:
Constant Field Values

ADD

public static final int ADD
Signifies a new object.

See Also:
Constant Field Values

REMOVE

public static final int REMOVE
Signifies a removed object.

See Also:
Constant Field Values

id

protected int id

oldName

protected java.lang.String oldName
Constructor Detail

MapEvent

public MapEvent(java.lang.Object source)
Constructor for MapEvent.


MapEvent

public MapEvent(java.lang.Object source,
                java.lang.String oldName)
Constructor for MapEvent.

Method Detail

isNameChange

public boolean isNameChange()

getId

public int getId()
Returns the id.


getNewName

public abstract java.lang.String getNewName()
Returns the newName of the object that caused this event.


getOldName

public java.lang.String getOldName()
Returns the oldName.


setId

public void setId(int id)
Sets the id.


setOldName

public void setOldName(java.lang.String oldName)
Sets the oldName.