public interface AlterTableExecutor
PLEASE READ: Due to CONFDEV-7957 (and until HSQLDB addresses their concurrency issues), any upgrade tasks that composes this executor must be wrapped in a transaction proxy with REQUIRES_NEW propagation.
Modifier and Type | Method and Description |
---|---|
void |
alterTable(String tableName,
List<? extends AlterTableCommand> commands)
Perform a set of table altering actions on a given table.
|
AddUniqueConstraintCommand |
createAddUniqueConstraintCommand(String constraintName,
String... columnNames) |
AlterColumnNullabilityCommand |
createAlterColumnNullChoiceCommand(String columnName,
String oldDataType,
NullChoice nullChoice) |
DropUniqueConstraintByColumnsCommand |
createDropUniqueConstraintByColumnsCommand(String... columnNames)
Drop constraints by column names.
|
DropUniqueConstraintCommand |
createDropUniqueConstraintCommand(String constraintName) |
List<String> |
getAlterTableStatements(String tableName,
List<? extends AlterTableCommand> commands) |
AlterColumnNullabilityCommand createAlterColumnNullChoiceCommand(String columnName, String oldDataType, NullChoice nullChoice)
AddUniqueConstraintCommand createAddUniqueConstraintCommand(String constraintName, String... columnNames)
DropUniqueConstraintCommand createDropUniqueConstraintCommand(String constraintName)
DropUniqueConstraintByColumnsCommand createDropUniqueConstraintByColumnsCommand(String... columnNames)
tableName
- Name of the table to altercolumnNames
- The names of the columns that make up the unique constraintvoid alterTable(String tableName, List<? extends AlterTableCommand> commands)
tableName
- Name of the table to altercommands
- A collection of alter table actions to performList<String> getAlterTableStatements(String tableName, List<? extends AlterTableCommand> commands)
Copyright © 2003–2017 Atlassian. All rights reserved.