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:
- java.io.Serializable
public class RelationshipEvent
- extends EntityEvent
Represents events resulted from Relationship changes
in CayenneModeler. This event is used for both ObjRelationships
and DbRelationships.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
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 |
relationship
protected Relationship relationship
RelationshipEvent
public RelationshipEvent(java.lang.Object src,
Relationship rel,
Entity entity)
- Creates a Relationship change event.
RelationshipEvent
public RelationshipEvent(java.lang.Object src,
Relationship rel,
Entity entity,
int id)
- Creates a Relationship event of a specified type.
RelationshipEvent
public RelationshipEvent(java.lang.Object src,
Relationship rel,
Entity entity,
java.lang.String oldName)
- Creates a Relationship name change event.
getRelationship
public Relationship getRelationship()
- Returns relationship associated with this event.
setRelationship
public void setRelationship(Relationship relationship)
- Sets relationship associated with this event.
- Parameters:
relationship
- The relationship to set
getNewName
public java.lang.String getNewName()
- Description copied from class:
MapEvent
- Returns the newName of the object that caused this event.
- Overrides:
getNewName
in class EntityEvent
Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.