public class RelationshipEvent extends EntityEvent
Modifier and Type | Field and Description |
---|---|
protected Relationship |
relationship |
entity
ADD, CHANGE, domain, id, oldName, oldNameSet, REMOVE
info, postedBy, subject
source
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, setEntity
getDomain, getId, getOldName, isNameChange, setDomain, setId, setOldName
getInfo, getPostedBy, getSubject, setPostedBy, setSubject
getSource, toString
protected 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()
MapEvent
getNewName
in class EntityEvent
Copyright © 2001–2023 Apache Cayenne. All rights reserved.