public interface

AlterTableExecutor

com.atlassian.confluence.upgrade.ddl.AlterTableExecutor
Known Indirect Subclasses

Class Overview

Executes all the various database-specific table altering commands.

Summary

Public Methods
abstract void alterTable(String tableName, List<? extends AlterTableCommand> commands)
Perform a set of table altering actions on a given table.
abstract AddUniqueConstraintCommand createAddUniqueConstraintCommand(String constraintName, String... columnNames)
abstract AlterColumnNullabilityCommand createAlterColumnNullChoiceCommand(String columnName, String oldDataType, NullChoice nullChoice)
abstract DropUniqueConstraintCommand createDropUniqueConstraintCommand(String constraintName)
abstract List<String> getAlterTableStatements(String tableName, List<? extends AlterTableCommand> commands)

Public Methods

public abstract void alterTable (String tableName, List<? extends AlterTableCommand> commands)

Perform a set of table altering actions on a given table. On some databases such as PostgreSQL this is combined into a single statement automatically. On other databases such as HSQLDB, each alter action is executed as a separate statement.

Parameters
tableName Name of the table to alter
commands A collection of alter table actions to perform

public abstract AddUniqueConstraintCommand createAddUniqueConstraintCommand (String constraintName, String... columnNames)

public abstract AlterColumnNullabilityCommand createAlterColumnNullChoiceCommand (String columnName, String oldDataType, NullChoice nullChoice)

public abstract DropUniqueConstraintCommand createDropUniqueConstraintCommand (String constraintName)

public abstract List<String> getAlterTableStatements (String tableName, List<? extends AlterTableCommand> commands)