Class ForeignKeyConstraint

java.lang.Object
liquibase.statement.ForeignKeyConstraint
All Implemented Interfaces:
ColumnConstraint

public class ForeignKeyConstraint extends Object implements ColumnConstraint
  • Constructor Details

    • ForeignKeyConstraint

      public ForeignKeyConstraint(String foreignKeyName, String references)
    • ForeignKeyConstraint

      public ForeignKeyConstraint(String foreignKeyName, String references, boolean validateForeignKey)
    • ForeignKeyConstraint

      public ForeignKeyConstraint(String foreignKeyName, String references, String referencedTableName, String referencedColumnNames)
    • ForeignKeyConstraint

      public ForeignKeyConstraint(String foreignKeyName, String references, String referencedTableName, String referencedColumnNames, boolean validateForeignKey)
  • Method Details

    • getForeignKeyName

      public String getForeignKeyName()
    • getColumn

      public String getColumn()
    • setColumn

      public ForeignKeyConstraint setColumn(String column)
    • getReferences

      public String getReferences()
    • isDeleteCascade

      public boolean isDeleteCascade()
    • getReferencedTableName

      public String getReferencedTableName()
    • getReferencedTableCatalogName

      public String getReferencedTableCatalogName()
    • setReferencedTableCatalogName

      public void setReferencedTableCatalogName(String referencedTableCatalogName)
    • getReferencedTableSchemaName

      public String getReferencedTableSchemaName()
    • setReferencedTableSchemaName

      public void setReferencedTableSchemaName(String referencedTableSchemaName)
    • getReferencedColumnNames

      public String getReferencedColumnNames()
    • setDeleteCascade

      public ForeignKeyConstraint setDeleteCascade(boolean deleteCascade)
    • isInitiallyDeferred

      public boolean isInitiallyDeferred()
    • setInitiallyDeferred

      public ForeignKeyConstraint setInitiallyDeferred(boolean initiallyDeferred)
    • isDeferrable

      public boolean isDeferrable()
    • setDeferrable

      public ForeignKeyConstraint setDeferrable(boolean deferrable)
    • shouldValidateForeignKey

      public boolean shouldValidateForeignKey()
    • setValidateForeignKey

      public void setValidateForeignKey(boolean validateForeignKey)