Class DropColumn
- java.lang.Object
 - 
- com.ibm.fhir.database.utils.common.DropColumn
 
 
- 
- All Implemented Interfaces:
 IDatabaseStatement
public class DropColumn extends Object implements IDatabaseStatement
Drop columns from the schema.table 
- 
- 
Constructor Summary
Constructors Constructor Description DropColumn(String schemaName, String tableName, boolean ignoreError, String... columnName)Public constructorDropColumn(String schemaName, String tableName, String... columnName)Public constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getColumnNames()StringgetSchemaName()StringgetTableName()booleanpostgresColumnExists(IDatabaseTranslator translator, Connection c, String columnName)Special check that the column exists before we try to drop itvoidrun(IDatabaseTranslator translator, Connection c)Execute the statement using the connection. 
 - 
 
- 
- 
Method Detail
- 
run
public void run(IDatabaseTranslator translator, Connection c)
Description copied from interface:IDatabaseStatementExecute the statement using the connection.- Specified by:
 runin interfaceIDatabaseStatement- Parameters:
 translator- to translate any exceptions
 
- 
postgresColumnExists
public boolean postgresColumnExists(IDatabaseTranslator translator, Connection c, String columnName)
Special check that the column exists before we try to drop it- Parameters:
 columnName-- Returns:
 
 
- 
getSchemaName
public String getSchemaName()
- Returns:
 - the schemaName
 
 
- 
getTableName
public String getTableName()
- Returns:
 - the tableName
 
 
 - 
 
 -