public class AddForeignKeyConstraintStatement extends AbstractSqlStatement
EMPTY_SQL_STATEMENT
Constructor and Description |
---|
AddForeignKeyConstraintStatement(String constraintName,
String baseTableCatalogName,
String baseTableSchemaName,
String baseTableName,
ColumnConfig[] baseColumns,
String referencedTableCatalogName,
String referencedTableSchemaName,
String referencedTableName,
ColumnConfig[] referencedColumns) |
continueOnError, setContinueOnError, skipOnUnsupported
public AddForeignKeyConstraintStatement(String constraintName, String baseTableCatalogName, String baseTableSchemaName, String baseTableName, ColumnConfig[] baseColumns, String referencedTableCatalogName, String referencedTableSchemaName, String referencedTableName, ColumnConfig[] referencedColumns)
public String getBaseTableCatalogName()
public String getBaseTableSchemaName()
public String getBaseTableName()
public ColumnConfig[] getBaseColumns()
public String getBaseColumnNames()
public String getReferencedTableCatalogName()
public String getReferencedTableSchemaName()
public String getReferencedTableName()
public ColumnConfig[] getReferencedColumns()
public String getReferencedColumnNames()
public String getConstraintName()
public boolean isDeferrable()
public String getOnDelete()
public String getOnUpdate()
public AddForeignKeyConstraintStatement setDeferrable(boolean deferrable)
public boolean isInitiallyDeferred()
public AddForeignKeyConstraintStatement setInitiallyDeferred(boolean initiallyDeferred)
public AddForeignKeyConstraintStatement setOnUpdate(String updateRule)
public AddForeignKeyConstraintStatement setOnDelete(String deleteRule)
public boolean shouldValidate()
public AddForeignKeyConstraintStatement setShouldValidate(boolean shouldValidate)
shouldValidate
- - if shouldValidate is set to FALSE then the constraint will be created
with the 'ENABLE NOVALIDATE' mode. This means the constraint would be created, but that no
check will be done to ensure old data has valid foreign keys - only new data would be checked
to see if it complies with the constraint logic. The default state for foreign keys is to
have 'ENABLE VALIDATE' set.Copyright © 2023 Liquibase.org. All rights reserved.