com.atlassian.confluence.upgrade.utils.altertable
Interface AlterTableCommand

All Known Implementing Classes:
AddUniqueConstraintCommand, AlterColumnCommand, AlterColumnRequiredCommand

public interface AlterTableCommand

Interface for all alter table commands. The intention is to eventually support: - Adding columns - Removing columns - Adding constraints - Removing constraints - Changing default values - Changing column data types - Setting/clearing the not null constraint - Renaming columns - Renaming tables


Method Summary
 String getCommandName()
           
 String getCommandParameters()
           
 

Method Detail

getCommandName

String getCommandName()
Returns:
The keyword/name of the current command for the current database (e.g. altering a column is "alter column" on PostgreSQL and "modify" on MySQL.

getCommandParameters

String getCommandParameters()
Returns:
The part that comes after the command name. E.g. "colname set not null" which would be after "alter column colname set not null"


Copyright © 2003-2011 Atlassian. All Rights Reserved.