@Deprecated public static class AlterTableQuery.AddForeignConstraintAction extends AlterTableQuery.AddConstraintAction
"... ADD FOREIGN KEY (<c1>...[<cn>]) REFERENCES t2 [(<c1>...<cn>)]
._constraint
ALL_SYMBOL, NULL_VALUE, QUESTION_MARK
Constructor and Description |
---|
AddForeignConstraintAction(Object table)
Deprecated.
Creates a new
AlterTableQuery.AddForeignConstraintAction which references
the given Table . |
AddForeignConstraintAction(Table table)
Deprecated.
Creates a new
AlterTableQuery.AddForeignConstraintAction which references
the given Table . |
Modifier and Type | Method and Description |
---|---|
AlterTableQuery.AddForeignConstraintAction |
addCustomPrimaryKeyReference(Object col)
Deprecated.
Adds
col as a reference to the primary key in the referenced
table. |
AlterTableQuery.AddForeignConstraintAction |
addCustomReference(Object col,
Object referencedCol)
Deprecated.
Adds
col as a reference to referencedCol in the
referenced table. |
AlterTableQuery.AddForeignConstraintAction |
addPrimaryKeyReference(Column col)
Deprecated.
Adds
col as a reference to the primary key in the referenced
table. |
AlterTableQuery.AddForeignConstraintAction |
addReference(Column col,
Column referencedCol)
Deprecated.
Adds
col as a reference to referencedCol in the
referenced table. |
protected ForeignKeyConstraintClause |
getConstraint()
Deprecated.
|
appendTo, collectSchemaObjects
collectSchemaObjects, doValidate, toString
toString, toString
public AddForeignConstraintAction(Table table)
AlterTableQuery.AddForeignConstraintAction
which references
the given Table
.public AddForeignConstraintAction(Object table)
AlterTableQuery.AddForeignConstraintAction
which references
the given Table
.
Object
-> SqlObject
conversions handled by
Converter.toCustomTableSqlObject(Object)
.protected ForeignKeyConstraintClause getConstraint()
getConstraint
in class AlterTableQuery.AddConstraintAction
public AlterTableQuery.AddForeignConstraintAction addPrimaryKeyReference(Column col)
col
as a reference to the primary key in the referenced
table.public AlterTableQuery.AddForeignConstraintAction addCustomPrimaryKeyReference(Object col)
col
as a reference to the primary key in the referenced
table.
Object
-> SqlObject
conversions handled by
Converter.CUSTOM_COLUMN_TO_OBJ
.
public AlterTableQuery.AddForeignConstraintAction addReference(Column col, Column referencedCol)
col
as a reference to referencedCol
in the
referenced table.public AlterTableQuery.AddForeignConstraintAction addCustomReference(Object col, Object referencedCol)
col
as a reference to referencedCol
in the
referenced table. If referencedCol is null
, it is ignored
(useful for referencing the primary key in the referenced table).
Object
-> SqlObject
conversions handled by
Converter.CUSTOM_COLUMN_TO_OBJ
.
Copyright © 2006–2021 OpenHMS. All rights reserved.