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) |
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)
void 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–2016 Atlassian. All rights reserved.