liquibase.change.core
Class DropColumnChange

java.lang.Object
  extended by liquibase.change.AbstractChange
      extended by liquibase.change.core.DropColumnChange
All Implemented Interfaces:
Change

public class DropColumnChange
extends AbstractChange

Drops an existing column from a table.


Constructor Summary
DropColumnChange()
           
 
Method Summary
 SqlStatement[] generateStatements(Database database)
          Generates the SQL statements required to run the change
 String getColumnName()
           
 String getConfirmationMessage()
           
 String getSchemaName()
           
 String getTableName()
           
 void setColumnName(String columnName)
           
 void setSchemaName(String schemaName)
           
 void setTableName(String tableName)
           
 
Methods inherited from class liquibase.change.AbstractChange
createInverses, generateCheckSum, generateRollbackStatements, getAffectedDatabaseObjects, getChangeMetaData, getChangeSet, getResourceAccessor, init, requiresUpdatedDatabaseMetadata, setChangeSet, setPriority, setResourceAccessor, supports, supportsRollback, validate, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropColumnChange

public DropColumnChange()
Method Detail

getColumnName

public String getColumnName()

setColumnName

public void setColumnName(String columnName)

getSchemaName

public String getSchemaName()

setSchemaName

public void setSchemaName(String schemaName)

getTableName

public String getTableName()

setTableName

public void setTableName(String tableName)

generateStatements

public SqlStatement[] generateStatements(Database database)
Description copied from interface: Change
Generates the SQL statements required to run the change

Parameters:
database - databasethe target Database associated to this change's statements
Returns:
an array of Strings with the statements

getConfirmationMessage

public String getConfirmationMessage()
Returns:
Confirmation message to be displayed after the change is executed


Copyright © 2004-2011 Liquibase.org. All Rights Reserved.