public class AddUniqueConstraintStatement extends AbstractSqlStatement
Constructor and Description |
---|
AddUniqueConstraintStatement(String catalogName,
String schemaName,
String tableName,
ColumnConfig[] columns,
String constraintName) |
continueOnError, setContinueOnError, skipOnUnsupported
public AddUniqueConstraintStatement(String catalogName, String schemaName, String tableName, ColumnConfig[] columns, String constraintName)
public String getCatalogName()
public String getSchemaName()
public String getTableName()
public ColumnConfig[] getColumns()
public String getColumnNames()
public String getConstraintName()
public String getTablespace()
public AddUniqueConstraintStatement setTablespace(String tablespace)
public boolean isDeferrable()
public AddUniqueConstraintStatement setDeferrable(boolean deferrable)
public boolean isInitiallyDeferred()
public AddUniqueConstraintStatement setInitiallyDeferred(boolean initiallyDeferred)
public boolean isDisabled()
public AddUniqueConstraintStatement setDisabled(boolean disabled)
public AddUniqueConstraintStatement setClustered(boolean clustered)
public boolean isClustered()
public String getForIndexName()
public void setForIndexName(String forIndexName)
public String getForIndexSchemaName()
public void setForIndexSchemaName(String forIndexSchemaName)
public String getForIndexCatalogName()
public void setForIndexCatalogName(String forIndexCatalogName)
public boolean shouldValidate()
public AddUniqueConstraintStatement 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 constraints - only new data would be checked
to see if it complies with the constraint logic. The default state for unique constraints is to
have 'ENABLE VALIDATE' set.Copyright © 2019 Liquibase.org. All rights reserved.