public abstract class MapEvent extends CayenneEvent
Modifier and Type | Field and Description |
---|---|
static int |
ADD
A type that describes object creation events.
|
static int |
CHANGE
A type that describes object modification events.
|
protected DataChannelDescriptor |
domain
Domain of event object.
|
protected int |
id |
protected String |
oldName |
protected boolean |
oldNameSet |
static int |
REMOVE
A type that describes object removal events.
|
info, postedBy, subject
source
Constructor and Description |
---|
MapEvent(Object source)
Constructor for MapEvent.
|
MapEvent(Object source,
String oldName)
Constructor for MapEvent.
|
Modifier and Type | Method and Description |
---|---|
DataChannelDescriptor |
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(DataChannelDescriptor domain)
Sets domain of event object.
|
void |
setId(int id)
Sets the id.
|
void |
setOldName(String oldName)
Sets the oldName.
|
getInfo, getPostedBy, getSubject, setPostedBy, setSubject
getSource, toString
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 DataChannelDescriptor domain
public MapEvent(Object source)
source
- event sourcepublic 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(DataChannelDescriptor domain)
public DataChannelDescriptor getDomain()
Copyright © 2001–2017 Apache Cayenne. All rights reserved.