public class AddPrimaryKeyStatement extends AbstractSqlStatement
Constructor and Description |
---|
AddPrimaryKeyStatement(String catalogName,
String schemaName,
String tableName,
String columnNames,
String constraintName) |
Modifier and Type | Method and Description |
---|---|
String |
getCatalogName() |
String |
getColumnNames() |
String |
getConstraintName() |
String |
getForIndexCatalogName() |
String |
getForIndexName() |
String |
getForIndexSchemaName() |
String |
getSchemaName() |
String |
getTableName() |
String |
getTablespace() |
Boolean |
isClustered() |
AddPrimaryKeyStatement |
setClustered(Boolean clustered) |
void |
setForIndexCatalogName(String forIndexCatalogName) |
void |
setForIndexName(String forIndexName) |
void |
setForIndexSchemaName(String forIndexSchemaName) |
AddPrimaryKeyStatement |
setShouldValidate(boolean shouldValidate) |
AddPrimaryKeyStatement |
setTablespace(String tablespace) |
boolean |
shouldValidate()
The VALIDATE keyword defines whether a primary key constraint on a column in a table
should be checked if it refers to a valid row or not.
|
continueOnError, setContinueOnError, skipOnUnsupported
public String getCatalogName()
public String getSchemaName()
public String getTableName()
public String getTablespace()
public AddPrimaryKeyStatement setTablespace(String tablespace)
public String getColumnNames()
public String getConstraintName()
public Boolean isClustered()
public AddPrimaryKeyStatement setClustered(Boolean clustered)
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 AddPrimaryKeyStatement 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 primary keys - only new data would be checked
to see if it complies with the constraint logic. The default state for primary keys is to
have 'ENABLE VALIDATE' set.Copyright © 2020 Liquibase.org. All rights reserved.