use of com.cubrid.common.ui.er.logic.PhysicalLogicRelation in project cubrid-manager by CUBRID.
the class SetPhysicalLogicaMapDialog method checkNewMapValid.
private void checkNewMapValid() throws ERException {
ERSchema copySchema = erSchema.clone();
PhysicalLogicRelation relation = copySchema.getPhysicalLogicRelation();
relation.setDataTypeMap(newColumnTypeMap);
//refresh all columns physical/logical data type by map
copySchema.setPhysicalLogicRelation(relation);
List<ERTable> tables = copySchema.getTables();
for (ERTable table : tables) {
table.checkValidate();
}
}
use of com.cubrid.common.ui.er.logic.PhysicalLogicRelation in project cubrid-manager by CUBRID.
the class SetPhysicalLogicaMapDialog method okPressed.
protected void okPressed() {
if (!CommonUITool.openConfirmBox(Messages.msgConfirmChangePhysicalLogicalMap)) {
return;
}
PhysicalLogicRelation.delEmptyEntry(newColumnTypeMap);
//check all column physical data types whether are valid by the new column type map
if (!erSchema.isPhysicModel()) {
try {
checkNewMapValid();
} catch (ERException e) {
CommonUITool.openErrorBox(getShell(), e.getMessage());
return;
}
}
PhysicalLogicRelation relation = erSchema.getPhysicalLogicRelation();
relation.setDataTypeMap(newColumnTypeMap);
//refresh all columns physical/logical data type by map
erSchema.setPhysicalLogicRelation(relation);
super.okPressed();
}
Aggregations