for (DbRelationship rel : entry.getValue()) {
relationshipAction.createDbRelationship(dbEntity, rel);
}
}
CreateDbEntityAction action = (CreateDbEntityAction) actionManager
.getAction(CreateDbEntityAction.getActionName());
action.createEntity(map, dbEntity);
break;
}
case QUERY: {
this.domain = Application
.getInstance()
.getFrameController()
.getProjectController()
.findDomain(map);
CreateQueryAction action = (CreateQueryAction) actionManager
.getAction(CreateQueryAction.getActionName());
action.createQuery(domain, map, query);
break;
}
case PROCEDURE: {
CreateProcedureAction action = (CreateProcedureAction) actionManager
.getAction(CreateProcedureAction.getActionName());
action.createProcedure(map, procedure);
break;
}
case MAP_FROM_NODE: {
this.dataNode.addDataMap(map);
DataNodeEvent e = new DataNodeEvent(Application.getFrame(), this.dataNode);
ProjectController controller = Application
.getInstance()
.getFrameController()
.getProjectController();
e.setDomain(controller.findDomain(this.dataNode));
controller.fireDataNodeEvent(e);
break;
}
case MAP_FROM_DOMAIN: {
CreateDataMapAction action = (CreateDataMapAction) actionManager
.getAction(CreateDataMapAction.getActionName());
action.createDataMap(domain, map);
break;
}
case NODE: {
CreateNodeAction action = (CreateNodeAction) actionManager
.getAction(CreateNodeAction.getActionName());
action.createDataNode(domain, dataNode);
break;
}
case DOMAIN: {
CreateDomainAction action = (CreateDomainAction) actionManager
.getAction(CreateDomainAction.getActionName());
action.createDomain(domain);
break;
}
case EMBEDDABLE: {
CreateEmbeddableAction action = (CreateEmbeddableAction) actionManager
.getAction(CreateEmbeddableAction.getActionName());
action.createEmbeddable(map, embeddable);
break;
}
}
}