Examples of fireObjRelationshipEvent()


Examples of org.apache.cayenne.modeler.ProjectController.fireObjRelationshipEvent()

        RelationshipEvent e = new RelationshipEvent(
                Application.getFrame(),
                rel,
                entity,
                MapEvent.REMOVE);
        mediator.fireObjRelationshipEvent(e);
    }

    protected void removeDbRelationship() {
        ProjectController mediator = getProjectController();
        DbEntity entity = mediator.getCurrentDbEntity();
View Full Code Here

Examples of org.apache.cayenne.modeler.ProjectController.fireObjRelationshipEvent()

                ObjRelationship.class,
                objEnt);
        rel.setSourceEntity(objEnt);
        objEnt.addRelationship(rel);

        mediator.fireObjRelationshipEvent(
            new RelationshipEvent(this, rel, objEnt, MapEvent.ADD));
       
        RelationshipDisplayEvent rde = new RelationshipDisplayEvent(
                this,
                rel,
View Full Code Here

Examples of org.apache.cayenne.modeler.ProjectController.fireObjRelationshipEvent()

                while (relationships.hasNext()) {

                    ObjRelationship r = (ObjRelationship) relationships.next();
                    if (r.isUsedForLocking() != on) {
                        r.setUsedForLocking(on);
                        parent.fireObjRelationshipEvent(new RelationshipEvent(
                                this,
                                r,
                                entity));
                    }
                }
View Full Code Here

Examples of org.apache.cayenne.modeler.ProjectController.fireObjRelationshipEvent()

            if (updateRelationships) {
                for (ObjRelationship r : entity.getRelationships()) {
                    if (r.isUsedForLocking() != on) {
                        r.setUsedForLocking(on);
                        parent.fireObjRelationshipEvent(new RelationshipEvent(
                                this,
                                r,
                                entity));
                    }
                }
View Full Code Here

Examples of org.apache.cayenne.modeler.ProjectController.fireObjRelationshipEvent()

    for (ObjRelationship rel : rels) {
      entity.removeRelationship(rel.getName());
      RelationshipEvent e = new RelationshipEvent(Application.getFrame(),
          rel, entity, MapEvent.REMOVE);
      mediator.fireObjRelationshipEvent(e);
    }
  }

  public void removeDbRelationships(DbEntity entity, DbRelationship[] rels) {
    ProjectController mediator = getProjectController();
View Full Code Here

Examples of org.apache.cayenne.modeler.ProjectController.fireObjRelationshipEvent()

    for (ObjRelationship rel : rels) {
      entity.removeRelationship(rel.getName());
      RelationshipEvent e = new RelationshipEvent(Application.getFrame(),
          rel, entity, MapEvent.REMOVE);
      mediator.fireObjRelationshipEvent(e);
    }
  }

  public void removeDbRelationships(DbEntity entity, DbRelationship[] rels) {
    ProjectController mediator = getProjectController();
View Full Code Here

Examples of org.apache.cayenne.modeler.ProjectController.fireObjRelationshipEvent()

            if (updateRelationships) {
                for (ObjRelationship r : entity.getRelationships()) {
                    if (r.isUsedForLocking() != on) {
                        r.setUsedForLocking(on);
                        parent.fireObjRelationshipEvent(new RelationshipEvent(
                                this,
                                r,
                                entity));
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.