|
|||||||||
| Home >> All >> org >> objectstyle >> cayenne >> map >> [ event overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.objectstyle.cayenne.map.event
Class RelationshipEvent

java.lang.Objectjava.util.EventObject
org.objectstyle.cayenne.event.CayenneEvent
org.objectstyle.cayenne.map.event.MapEvent
org.objectstyle.cayenne.map.event.EntityEvent
org.objectstyle.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.
| Field Summary | |
protected org.objectstyle.cayenne.map.Relationship |
relationship
|
| Fields inherited from class org.objectstyle.cayenne.map.event.EntityEvent |
entity |
| Fields inherited from class org.objectstyle.cayenne.map.event.MapEvent |
ADD, CHANGE, id, oldName, REMOVE |
| Fields inherited from class org.objectstyle.cayenne.event.CayenneEvent |
|
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
RelationshipEvent(java.lang.Object src,
org.objectstyle.cayenne.map.Relationship rel,
org.objectstyle.cayenne.map.Entity entity)
Creates a Relationship change event. |
|
RelationshipEvent(java.lang.Object src,
org.objectstyle.cayenne.map.Relationship rel,
org.objectstyle.cayenne.map.Entity entity,
int id)
Creates a Relationship event of a specified type. |
|
RelationshipEvent(java.lang.Object src,
org.objectstyle.cayenne.map.Relationship rel,
org.objectstyle.cayenne.map.Entity entity,
java.lang.String oldName)
Creates a Relationship name change event. |
|
| Method Summary | |
java.lang.String |
getNewName()
Returns the newName of the object that caused this event. |
org.objectstyle.cayenne.map.Relationship |
getRelationship()
Returns relationship associated with this event. |
void |
setRelationship(org.objectstyle.cayenne.map.Relationship relationship)
Sets relationship associated with this event. |
| Methods inherited from class org.objectstyle.cayenne.map.event.EntityEvent |
getEntity, setEntity |
| Methods inherited from class org.objectstyle.cayenne.map.event.MapEvent |
getId, getOldName, isNameChange, setId, setOldName |
| Methods inherited from class org.objectstyle.cayenne.event.CayenneEvent |
getInfo |
| 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 |
| Field Detail |
relationship
protected org.objectstyle.cayenne.map.Relationship relationship
| Constructor Detail |
RelationshipEvent
public RelationshipEvent(java.lang.Object src, org.objectstyle.cayenne.map.Relationship rel, org.objectstyle.cayenne.map.Entity entity)
- Creates a Relationship change event.
RelationshipEvent
public RelationshipEvent(java.lang.Object src, org.objectstyle.cayenne.map.Relationship rel, org.objectstyle.cayenne.map.Entity entity, int id)
- Creates a Relationship event of a specified type.
RelationshipEvent
public RelationshipEvent(java.lang.Object src, org.objectstyle.cayenne.map.Relationship rel, org.objectstyle.cayenne.map.Entity entity, java.lang.String oldName)
- Creates a Relationship name change event.
| Method Detail |
getRelationship
public org.objectstyle.cayenne.map.Relationship getRelationship()
- Returns relationship associated with this event.
setRelationship
public void setRelationship(org.objectstyle.cayenne.map.Relationship relationship)
- Sets relationship associated with this event.
getNewName
public java.lang.String getNewName()
- Description copied from class:
MapEvent - Returns the newName of the object that caused this event.
- Overrides:
getNewNamein classEntityEvent
|
|||||||||
| Home >> All >> org >> objectstyle >> cayenne >> map >> [ event overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC