use of org.jkiss.dbeaver.ext.generic.model.GenericTableForeignKey in project dbeaver by serge-rider.
the class GenericForeignKeyManager method createDatabaseObject.
@Override
protected GenericTableForeignKey createDatabaseObject(DBRProgressMonitor monitor, DBECommandContext context, final Object container, Object from, Map<String, Object> options) {
GenericTableBase tableBase = (GenericTableBase) container;
GenericTableForeignKey foreignKey = new GenericTableForeignKey(tableBase, null, null, null, DBSForeignKeyModifyRule.NO_ACTION, DBSForeignKeyModifyRule.NO_ACTION, DBSForeignKeyDeferability.NOT_DEFERRABLE, false);
foreignKey.setName(getNewConstraintName(monitor, foreignKey));
return foreignKey;
}
Aggregations