Search in sources :

Example 1 with GenericTableForeignKey

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;
}
Also used : GenericTableForeignKey(org.jkiss.dbeaver.ext.generic.model.GenericTableForeignKey) GenericTableBase(org.jkiss.dbeaver.ext.generic.model.GenericTableBase)

Aggregations

GenericTableBase (org.jkiss.dbeaver.ext.generic.model.GenericTableBase)1 GenericTableForeignKey (org.jkiss.dbeaver.ext.generic.model.GenericTableForeignKey)1