public abstract class AbstractMigrateUriRegistrySqlCommand extends 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()
Checks if this command can handle execution directly
in a given jdbc template.
|
protected List<AbstractMigrateUriRegistrySqlCommand.AppRegistrationMigrationData> |
createAppRegistrationMigrationData(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Creates a migration data from URI_REGISTRY table to get inserted
into app_registration table.
|
protected void |
dropUriRegistryTable(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
Drop uri registry table.
|
void |
handle(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
Connection connection)
Handle command in a given jdbc template.
|
protected abstract void |
updateAppRegistration(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
List<AbstractMigrateUriRegistrySqlCommand.AppRegistrationMigrationData> data)
Update app registration.
|
from, from, getCommand, getSuppressedErrorCodespublic AbstractMigrateUriRegistrySqlCommand()
public void handle(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
Connection connection)
SqlCommandhandle in class SqlCommandjdbcTemplate - the jdbc templatepublic boolean canHandleInJdbcTemplate()
SqlCommandcanHandleInJdbcTemplate in class SqlCommandprotected abstract void updateAppRegistration(org.springframework.jdbc.core.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(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
jdbcTemplate - the jdbc templateprotected void dropUriRegistryTable(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
jdbcTemplate - the jdbc templateCopyright © 2020 Pivotal Software, Inc.. All rights reserved.