Class AbstractBaselineCallback
java.lang.Object
org.springframework.cloud.dataflow.common.flyway.AbstractCallback
org.springframework.cloud.dataflow.server.db.migration.AbstractBaselineCallback
- All Implemented Interfaces:
org.flywaydb.core.api.callback.Callback
- Direct Known Subclasses:
Db2BeforeBaseline
,MariadbBeforeBaseline
,MsSqlBeforeBaseline
,MysqlBeforeBaseline
,OracleBeforeBaseline
,PostgresBeforeBaseline
public abstract class AbstractBaselineCallback
extends org.springframework.cloud.dataflow.common.flyway.AbstractCallback
Base implementation for baselining schema setup.
- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorDescriptionAbstractBaselineCallback
(AbstractInitialSetupMigration initialSetupMigration) Instantiates a new abstract baseline callback. -
Method Summary
Modifier and TypeMethodDescriptionabstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Change app registration table.abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Change audit records table.abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Change stream definitions table.abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Change task definitions table.abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Change uri registry table.abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Creates the indexes.abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Create the task deployment table.abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Creates the task lock table.protected boolean
doTableExists
(org.flywaydb.core.api.callback.Context context, String name) abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
Drop indexes.List<org.springframework.cloud.dataflow.common.flyway.SqlCommand>
getCommands
(org.flywaydb.core.api.callback.Event event, org.flywaydb.core.api.callback.Context context) Methods inherited from class org.springframework.cloud.dataflow.common.flyway.AbstractCallback
canHandleInTransaction, getCallbackName, handle, supports
-
Constructor Details
-
AbstractBaselineCallback
Instantiates a new abstract baseline callback.- Parameters:
initialSetupMigration
- the initial setup migration
-
-
Method Details
-
getCommands
public List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> getCommands(org.flywaydb.core.api.callback.Event event, org.flywaydb.core.api.callback.Context context) - Overrides:
getCommands
in classorg.springframework.cloud.dataflow.common.flyway.AbstractCallback
-
doTableExists
-
dropIndexes
Drop indexes.- Returns:
- the list of sql commands
-
changeAppRegistrationTable
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> changeAppRegistrationTable()Change app registration table.- Returns:
- the list of sql commands
-
changeUriRegistryTable
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> changeUriRegistryTable()Change uri registry table.- Returns:
- the list of sql commands
-
changeStreamDefinitionsTable
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> changeStreamDefinitionsTable()Change stream definitions table.- Returns:
- the list of sql commands
-
changeTaskDefinitionsTable
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> changeTaskDefinitionsTable()Change task definitions table.- Returns:
- the list of sql commands
-
changeAuditRecordsTable
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> changeAuditRecordsTable()Change audit records table.- Returns:
- the list of sql commands
-
createIndexes
Creates the indexes.- Returns:
- the list of sql commands
-
createTaskLockTable
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> createTaskLockTable()Creates the task lock table.- Returns:
- the list of sql commands
-
createTaskDeploymentTable
public abstract List<org.springframework.cloud.dataflow.common.flyway.SqlCommand> createTaskDeploymentTable()Create the task deployment table.- Returns:
- the list of sql commands
-