public class RelationshipEvent extends EntityEvent
| Modifier and Type | Field and Description |
|---|---|
protected Relationship |
relationship |
entityADD, CHANGE, domain, id, oldName, oldNameSet, REMOVEinfo, postedBy, subjectsource| Constructor and Description |
|---|
RelationshipEvent(Object src,
Relationship rel,
Entity entity)
Creates a Relationship change event.
|
RelationshipEvent(Object src,
Relationship rel,
Entity entity,
int id)
Creates a Relationship event of a specified type.
|
RelationshipEvent(Object src,
Relationship rel,
Entity entity,
String oldName)
Creates a Relationship name change event.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getNewName()
Returns the newName of the object that caused this event.
|
Relationship |
getRelationship()
Returns relationship associated with this event.
|
void |
setRelationship(Relationship relationship)
Sets relationship associated with this event.
|
getEntity, setEntitygetDomain, getId, getOldName, isNameChange, setDomain, setId, setOldNamegetInfo, getPostedBy, getSubject, setPostedBy, setSubjectgetSource, toStringprotected Relationship relationship
public RelationshipEvent(Object src, Relationship rel, Entity entity)
public RelationshipEvent(Object src, Relationship rel, Entity entity, int id)
public RelationshipEvent(Object src, Relationship rel, Entity entity, String oldName)
public Relationship getRelationship()
public void setRelationship(Relationship relationship)
relationship - The relationship to setpublic String getNewName()
MapEventgetNewName in class EntityEventCopyright © 2001–2023 Apache Cayenne. All rights reserved.