Package org.apache.cayenne.map.event
Class RelationshipEvent
java.lang.Object
java.util.EventObject
org.apache.cayenne.event.CayenneEvent
org.apache.cayenne.map.event.MapEvent
org.apache.cayenne.map.event.EntityEvent
org.apache.cayenne.map.event.RelationshipEvent
- All Implemented Interfaces:
- Serializable
Represents events resulted from Relationship changes 
 in CayenneModeler. This event is used for both ObjRelationships
 and DbRelationships.
- See Also:
- 
Field SummaryFieldsFields inherited from class org.apache.cayenne.map.event.EntityEvententityFields inherited from class org.apache.cayenne.map.event.MapEventADD, CHANGE, domain, id, oldName, oldNameSet, REMOVEFields inherited from class org.apache.cayenne.event.CayenneEventinfo, postedBy, subjectFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionRelationshipEvent(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.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the newName of the object that caused this event.Relationship<?,?, ?> Returns relationship associated with this event.voidsetRelationship(Relationship<?, ?, ?> relationship) Sets relationship associated with this event.Methods inherited from class org.apache.cayenne.map.event.EntityEventgetEntity, setEntityMethods inherited from class org.apache.cayenne.map.event.MapEventgetDomain, getId, getOldName, isNameChange, setDomain, setId, setOldNameMethods inherited from class org.apache.cayenne.event.CayenneEventgetInfo, getPostedBy, getSubject, setPostedBy, setSubjectMethods inherited from class java.util.EventObjectgetSource, toString
- 
Field Details- 
relationship
 
- 
- 
Constructor Details- 
RelationshipEventCreates a Relationship change event.
- 
RelationshipEventCreates a Relationship event of a specified type.
- 
RelationshipEventCreates a Relationship name change event.
 
- 
- 
Method Details- 
getRelationshipReturns relationship associated with this event.
- 
setRelationshipSets relationship associated with this event.- Parameters:
- relationship- The relationship to set
 
- 
getNewNameDescription copied from class:MapEventReturns the newName of the object that caused this event.- Overrides:
- getNewNamein class- EntityEvent
 
 
-