addColumnReference function

Adds a column reference to the foreign key.

Syntax
ForeignKeySchema ForeignKeySchema.addColumnReference(
  String foreign_column,
  String primary_column
) throws ULjException
Parameters
  • foreign_column   The name of column containing the foreign key. The values in this column are used to reference values in the primary_column_name column of the primary table.

  • primary_column   The name of column in the referenced table. All primary columns, as a set, must be in a primary or unique key constraint of the primary table.

Returns

This ForeignKeySchema with the foreign key assigned to the foreign column.