liquibase.statement.core.DropColumnStatement Maven / Gradle / Ivy
package liquibase.statement.core;
import liquibase.statement.AbstractSqlStatement;
import java.util.ArrayList;
import java.util.List;
public class DropColumnStatement extends AbstractSqlStatement {
private String catalogName;
private String schemaName;
private String tableName;
private String columnName;
private List columns = new ArrayList<>();
public DropColumnStatement(String catalogName, String schemaName, String tableName, String columnName) {
this.catalogName = catalogName;
this.schemaName = schemaName;
this.tableName = tableName;
this.columnName = columnName;
}
public DropColumnStatement(List columns) {
this.columns.addAll(columns);
}
public boolean isMultiple() {
return !columns.isEmpty();
}
public List getColumns() {
return columns;
}
public String getCatalogName() {
return catalogName;
}
public String getSchemaName() {
return schemaName;
}
public String getTableName() {
return tableName;
}
public String getColumnName() {
return columnName;
}
}