public class DropColumnSqlCommands
extends org.springframework.cloud.dataflow.common.flyway.SqlCommand
Constructor and Description |
---|
DropColumnSqlCommands(String... columnName) |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandleInJdbcTemplate() |
protected void |
dropColumn(JdbcTemplate jdbcTemplate,
Connection connection,
String name) |
void |
handle(JdbcTemplate jdbcTemplate,
Connection connection) |
protected boolean |
hasColumn(Connection connection,
String schemaName,
String tableName,
String columnName) |
public DropColumnSqlCommands(String... columnName)
public void handle(JdbcTemplate jdbcTemplate, Connection connection)
handle
in class org.springframework.cloud.dataflow.common.flyway.SqlCommand
public boolean canHandleInJdbcTemplate()
canHandleInJdbcTemplate
in class org.springframework.cloud.dataflow.common.flyway.SqlCommand
protected void dropColumn(JdbcTemplate jdbcTemplate, Connection connection, String name) throws SQLException
SQLException
protected boolean hasColumn(Connection connection, String schemaName, String tableName, String columnName) throws SQLException
SQLException
Copyright © 2024 Pivotal Software, Inc.. All rights reserved.