public abstract class AbstractMigrateUriRegistrySqlCommand
extends org.springframework.cloud.dataflow.common.flyway.SqlCommand
SqlCommand copying data from
URI_REGISTRY table into app_registration table.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractMigrateUriRegistrySqlCommand.AppRegistrationMigrationData
Raw migration data from uri registry into app registration.
|
| Constructor and Description |
|---|
AbstractMigrateUriRegistrySqlCommand() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandleInJdbcTemplate() |
protected List<AbstractMigrateUriRegistrySqlCommand.AppRegistrationMigrationData> |
createAppRegistrationMigrationData(JdbcTemplate jdbcTemplate)
Creates a migration data from URI_REGISTRY table to get inserted
into app_registration table.
|
protected void |
dropUriRegistryTable(JdbcTemplate jdbcTemplate)
Drop uri registry table.
|
void |
handle(JdbcTemplate jdbcTemplate,
Connection connection) |
protected abstract void |
updateAppRegistration(JdbcTemplate jdbcTemplate,
List<AbstractMigrateUriRegistrySqlCommand.AppRegistrationMigrationData> data)
Update app registration.
|
public AbstractMigrateUriRegistrySqlCommand()
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 abstract void updateAppRegistration(JdbcTemplate jdbcTemplate, List<AbstractMigrateUriRegistrySqlCommand.AppRegistrationMigrationData> data)
AppRegistrationMigrationData's and keep hibernate_sequence
up-to-date.jdbcTemplate - the jdbc templatedata - the dataprotected List<AbstractMigrateUriRegistrySqlCommand.AppRegistrationMigrationData> createAppRegistrationMigrationData(JdbcTemplate jdbcTemplate)
jdbcTemplate - the jdbc templateprotected void dropUriRegistryTable(JdbcTemplate jdbcTemplate)
jdbcTemplate - the jdbc templateCopyright © 2024 Pivotal Software, Inc.. All rights reserved.