Package liquibase.statement
Class ForeignKeyConstraint
java.lang.Object
liquibase.statement.ForeignKeyConstraint
- All Implemented Interfaces:
ColumnConstraint
-
Constructor Summary
ConstructorDescriptionForeignKeyConstraint
(String foreignKeyName, String references) ForeignKeyConstraint
(String foreignKeyName, String references, boolean validateForeignKey) ForeignKeyConstraint
(String foreignKeyName, String references, String referencedTableName, String referencedColumnNames) ForeignKeyConstraint
(String foreignKeyName, String references, String referencedTableName, String referencedColumnNames, boolean validateForeignKey) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
setDeferrable
(boolean deferrable) setDeleteCascade
(boolean deleteCascade) setInitiallyDeferred
(boolean initiallyDeferred) void
setReferencedTableCatalogName
(String referencedTableCatalogName) void
setReferencedTableSchemaName
(String referencedTableSchemaName) void
setValidateForeignKey
(boolean validateForeignKey) boolean
-
Constructor Details
-
ForeignKeyConstraint
-
ForeignKeyConstraint
-
ForeignKeyConstraint
-
ForeignKeyConstraint
-
-
Method Details
-
getForeignKeyName
-
getColumn
-
setColumn
-
getReferences
-
isDeleteCascade
public boolean isDeleteCascade() -
getReferencedTableName
-
getReferencedTableCatalogName
-
setReferencedTableCatalogName
-
getReferencedTableSchemaName
-
setReferencedTableSchemaName
-
getReferencedColumnNames
-
setDeleteCascade
-
isInitiallyDeferred
public boolean isInitiallyDeferred() -
setInitiallyDeferred
-
isDeferrable
public boolean isDeferrable() -
setDeferrable
-
shouldValidateForeignKey
public boolean shouldValidateForeignKey() -
setValidateForeignKey
public void setValidateForeignKey(boolean validateForeignKey)
-