1 56 package org.objectstyle.cayenne.modeler.event; 57 58 import org.objectstyle.cayenne.access.DataDomain; 59 import org.objectstyle.cayenne.map.DataMap; 60 import org.objectstyle.cayenne.map.Entity; 61 import org.objectstyle.cayenne.map.Relationship; 62 63 public class RelationshipDisplayEvent extends EntityDisplayEvent { 64 protected Relationship relationship; 65 protected boolean relationshipChanged = true; 66 67 public RelationshipDisplayEvent( 68 Object src, 69 Relationship relationship, 70 Entity entity, 71 DataMap map, 72 DataDomain domain) { 73 74 super(src, entity, map, domain); 75 this.relationship = relationship; 76 } 77 78 public Relationship getRelationship() { 79 return relationship; 80 } 81 82 public boolean isRelationshipChanged() { 83 return relationshipChanged; 84 } 85 86 public void setRelationshipChanged(boolean temp) { 87 relationshipChanged = temp; 88 } 89 } | Popular Tags |