Examples of fireDbRelationshipEvent()


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

        RelationshipEvent e = new RelationshipEvent(
                Application.getFrame(),
                rel,
                entity,
                MapEvent.REMOVE);
        mediator.fireDbRelationshipEvent(e);
    }
}
View Full Code Here

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

            (DbRelationship) NamedObjectFactory.createObject(DbRelationship.class, dbEnt);

        rel.setSourceEntity(dbEnt);
        dbEnt.addRelationship(rel);

        mediator.fireDbRelationshipEvent(
            new RelationshipEvent(this, rel, dbEnt, MapEvent.ADD));

        RelationshipDisplayEvent rde = new RelationshipDisplayEvent(
                this,
                rel,
View Full Code Here

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

            DbRelationship rel = new DbRelationship(uniqueRelName(temp.getSource(), temp
                    .getName()));

            RelationshipEvent e = new RelationshipEvent(Application.getFrame(), rel, temp
                    .getSource(), MapEvent.ADD);
            mediator.fireDbRelationshipEvent(e);

            rel.setSourceEntity(temp.getSource());
            rel.setTargetEntity(temp.getTarget());
            DbJoin join = new DbJoin(rel, temp.getJoinSource().getName(), temp
                    .getJoinTarget()
View Full Code Here

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

    for (DbRelationship rel : rels) {
      entity.removeRelationship(rel.getName());

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

    ProjectUtil.cleanObjMappings(mediator.getCurrentDataMap());
  }
}
View Full Code Here

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

    for (DbRelationship rel : rels) {
      entity.removeRelationship(rel.getName());

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

    ProjectUtil.cleanObjMappings(mediator.getCurrentDataMap());
  }
}
View Full Code Here

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

            DbRelationship rel = new DbRelationship(uniqueRelName(temp.getSource(), temp
                    .getName()));

            RelationshipEvent e = new RelationshipEvent(Application.getFrame(), rel, temp
                    .getSource(), MapEvent.ADD);
            mediator.fireDbRelationshipEvent(e);

            rel.setSourceEntity(temp.getSource());
            rel.setTargetEntity(temp.getTarget());
            DbJoin join = new DbJoin(rel, temp.getJoinSource().getName(), temp
                    .getJoinTarget()
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.