Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.map.event
Class MapEvent

    java.lang.Object
      java.util.EventObject
          org.apache.cayenne.event.CayenneEvent
              org.apache.cayenne.map.event.MapEvent

All Implemented Interfaces:
  java.io.Serializable

Direct Known Subclasses:
  DataMapEvent, DataNodeEvent, DomainEvent, EntityEvent, ProcedureEvent, ProcedureParameterEvent, QueryEvent

    public abstract class MapEvent

extends CayenneEvent

Superclass of CayenneModeler events.

Author:
  Andrei Adamchik
See Also:
  Serialized Form

Field Summary
`static int` | `ADD` A type that describes object creation events.
`static int` | `CHANGE` A type that describes object modification events.
`protected int` | `id`
`protected java.lang.String` | `oldName`
`protected boolean` | `oldNameSet`
`static int` | `REMOVE` A 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(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.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

### CHANGE

    public static final int CHANGE

  A type that describes object modification events. CHANGE is a default type of new MapEvents, unless the type is specified explicitly.

  See Also:
    Constant Field Values

### ADD

    public static final int ADD

  A type that describes object creation events.

  See Also:
    Constant Field Values

### REMOVE

    public static final int REMOVE

  A type that describes object removal events.

  See Also:
    Constant Field Values

### id

    protected int id

### oldName

    protected java.lang.String oldName

### oldNameSet

    protected boolean oldNameSet

Constructor Detail

### MapEvent

    public MapEvent(java.lang.Object source)

  Constructor for MapEvent.

  Parameters:
    `source` - event source

### MapEvent

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

  Constructor for MapEvent.

  Parameters:
    `source` - event source

Method Detail

### isNameChange

    public boolean isNameChange()

### getId

    public int getId()

  Returns the id.

  Returns:
    int

### 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.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2006 Apache.org All Rights Reserved.