use of com.cubrid.common.core.common.model.TableDetailInfo in project cubrid-manager by CUBRID.
the class TableSchemaCompareRunner method compareTableSchema.
/**
* Create a schema compare editor input
*
* @param sourceDatabase
* @param targetDatabase
* @return
*/
private TableSchemaCompareEditorInput compareTableSchema(CubridDatabase sourceDatabase, CubridDatabase targetDatabase) {
List<TableDetailInfo> lTableInfoList;
if (sourceTableInfoList != null) {
lTableInfoList = sourceTableInfoList;
} else {
lTableInfoList = TableSchemaCompareUtil.getTableInfoList(sourceDatabase);
}
if (dialog.isCanceled()) {
return null;
}
List<TableDetailInfo> rTableInfoList = getTableInfoList(targetDatabase);
if (dialog.isCanceled()) {
return null;
}
TableSchemaCompareEditorInput CompareInput = new TableSchemaCompareEditorInput(sourceDatabase, targetDatabase, lTableInfoList, rTableInfoList);
return CompareInput;
}
use of com.cubrid.common.core.common.model.TableDetailInfo in project cubrid-manager by CUBRID.
the class TableSchemaCompareUtil method createTableSchemaModel.
public static TableSchemaModel createTableSchemaModel(List<TableDetailInfo> TableInfoList) {
TableSchemaModel tableSchemaModel = new TableSchemaModel();
for (TableDetailInfo tableInfo : TableInfoList) {
tableSchemaModel.setTableSchemaMap(tableInfo.getTableName(), "");
tableSchemaModel.setTableDetailInfoMap(tableInfo.getTableName(), tableInfo);
}
return tableSchemaModel;
}
Aggregations