Search in sources :

Example 1 with DeleteRelationshipCommand

use of com.cubrid.common.ui.er.commands.DeleteRelationshipCommand in project cubrid-manager by CUBRID.

the class RelationshipEditPolicy method createDeleteCommand.

protected Command createDeleteCommand(GroupRequest request) {
    Relationship relationship = (Relationship) getHost().getModel();
    ERTable primaryKeyTarget = relationship.getPrimaryKeyTable();
    ERTable foreignKeySource = relationship.getForeignKeyTable();
    DeleteRelationshipCommand deleteCmd = new DeleteRelationshipCommand(foreignKeySource, primaryKeyTarget, relationship);
    return deleteCmd;
}
Also used : DeleteRelationshipCommand(com.cubrid.common.ui.er.commands.DeleteRelationshipCommand) Relationship(com.cubrid.common.ui.er.model.Relationship) ERTable(com.cubrid.common.ui.er.model.ERTable)

Aggregations

DeleteRelationshipCommand (com.cubrid.common.ui.er.commands.DeleteRelationshipCommand)1 ERTable (com.cubrid.common.ui.er.model.ERTable)1 Relationship (com.cubrid.common.ui.er.model.Relationship)1