|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.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
public class RelationshipEvent
Represents events resulted from Relationship changes in CayenneModeler. This event is used for both ObjRelationships and DbRelationships.
| Field Summary | |
|---|---|
protected Relationship |
relationship
|
| Fields inherited from class org.apache.cayenne.map.event.EntityEvent |
|---|
entity |
| Fields inherited from class org.apache.cayenne.map.event.MapEvent |
|---|
ADD, CHANGE, id, oldName, oldNameSet, REMOVE |
| Fields inherited from class org.apache.cayenne.event.CayenneEvent |
|---|
info, postedBy, subject |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.cayenne.map.event.EntityEvent |
|---|
getEntity, setEntity |
| Methods inherited from class org.apache.cayenne.map.event.MapEvent |
|---|
getId, getOldName, isNameChange, setId, setOldName |
| Methods inherited from class org.apache.cayenne.event.CayenneEvent |
|---|
getInfo, getPostedBy, getSubject, setPostedBy, setSubject |
| 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 |
|---|
protected Relationship relationship
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public Relationship getRelationship()
public void setRelationship(Relationship relationship)
relationship - The relationship to setpublic String getNewName()
MapEvent
getNewName in class EntityEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||