Class AddColumn
- java.lang.Object
-
- org.linuxforhealth.fhir.database.utils.common.AddColumn
-
- All Implemented Interfaces:
IDatabaseStatement
public class AddColumn extends java.lang.Object implements IDatabaseStatement
Add column to the schema.table
-
-
Constructor Summary
Constructors Constructor Description AddColumn(java.lang.String schemaName, java.lang.String tableName, ColumnBase column)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnBase
getColumn()
java.lang.String
getSchemaName()
java.lang.String
getTableName()
void
run(IDatabaseTranslator translator, java.sql.Connection c)
Execute the statement using the connection.
-
-
-
Constructor Detail
-
AddColumn
public AddColumn(java.lang.String schemaName, java.lang.String tableName, ColumnBase column)
Public constructor- Parameters:
schemaName
-tableName
-
-
-
Method Detail
-
run
public void run(IDatabaseTranslator translator, java.sql.Connection c)
Description copied from interface:IDatabaseStatement
Execute the statement using the connection.- Specified by:
run
in interfaceIDatabaseStatement
- Parameters:
translator
- to translate any exceptions
-
getSchemaName
public java.lang.String getSchemaName()
- Returns:
- the schemaName
-
getTableName
public java.lang.String getTableName()
- Returns:
- the tableName
-
getColumn
public ColumnBase getColumn()
- Returns:
- the columnNames
-
-