use of org.jkiss.dbeaver.model.runtime.VoidProgressMonitor in project dbeaver by serge-rider.
the class PostgreTableManager method appendTableModifiers.
@Override
protected void appendTableModifiers(PostgreTableBase tableBase, NestedObjectCommand tableProps, StringBuilder ddl) {
if (tableBase instanceof PostgreTableRegular) {
final VoidProgressMonitor monitor = VoidProgressMonitor.INSTANCE;
PostgreTableRegular table = (PostgreTableRegular) tableBase;
try {
final List<PostgreTableInheritance> superTables = table.getSuperInheritance(monitor);
if (!CommonUtils.isEmpty(superTables)) {
ddl.append("\nINHERITS (");
for (int i = 0; i < superTables.size(); i++) {
if (i > 0)
ddl.append(",");
ddl.append(superTables.get(i).getAssociatedEntity().getFullyQualifiedName(DBPEvaluationContext.DDL));
}
ddl.append(")");
}
ddl.append("\nWITH (\n\tOIDS=").append(table.isHasOids() ? "TRUE" : "FALSE").append("\n)");
} catch (DBException e) {
log.error(e);
}
}
}
Aggregations