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.SqlCommandpublic boolean canHandleInJdbcTemplate()
canHandleInJdbcTemplate in class org.springframework.cloud.dataflow.common.flyway.SqlCommandprotected void dropColumn(JdbcTemplate jdbcTemplate, Connection connection, String name) throws SQLException
SQLExceptionprotected boolean hasColumn(Connection connection, String schemaName, String tableName, String columnName) throws SQLException
SQLExceptionCopyright © 2024 Pivotal Software, Inc.. All rights reserved.