Package org.flywaydb.core.api.callback
Interface FlywayCallback
-
- All Known Implementing Classes:
BaseFlywayCallback
@Deprecated public interface FlywayCallback
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.This is the main callback interface that should be implemented to get access to flyway lifecycle notifications. Simply add code to the callback method you are interested in having. A convenience implementation with all methods doing nothing is provided withBaseFlywayCallback. To ensure backward compatibility, you are encouraged to subclass that class instead of implementing this interface directly.If a callback also implements the
ConfigurationAwareinterface, aFlywayConfigurationobject will automatically be injected before calling any methods, giving the callback access to the core flyway configuration.BaseFlywayCallbackalready implementsConfigurationAwareEach callback method will run within its own transaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidafterBaseline(Connection connection)Deprecated.UseCallbackinstead.voidafterClean(Connection connection)Deprecated.UseCallbackinstead.voidafterEachMigrate(Connection connection, MigrationInfo info)Deprecated.UseCallbackinstead.voidafterEachUndo(Connection connection, MigrationInfo info)Deprecated.UseCallbackinstead.voidafterInfo(Connection connection)Deprecated.UseCallbackinstead.voidafterMigrate(Connection connection)Deprecated.UseCallbackinstead.voidafterRepair(Connection connection)Deprecated.UseCallbackinstead.voidafterUndo(Connection connection)Deprecated.UseCallbackinstead.voidafterValidate(Connection connection)Deprecated.UseCallbackinstead.voidbeforeBaseline(Connection connection)Deprecated.UseCallbackinstead.voidbeforeClean(Connection connection)Deprecated.UseCallbackinstead.voidbeforeEachMigrate(Connection connection, MigrationInfo info)Deprecated.UseCallbackinstead.voidbeforeEachUndo(Connection connection, MigrationInfo info)Deprecated.UseCallbackinstead.voidbeforeInfo(Connection connection)Deprecated.UseCallbackinstead.voidbeforeMigrate(Connection connection)Deprecated.UseCallbackinstead.voidbeforeRepair(Connection connection)Deprecated.UseCallbackinstead.voidbeforeUndo(Connection connection)Deprecated.UseCallbackinstead.voidbeforeValidate(Connection connection)Deprecated.UseCallbackinstead.
-
-
-
Method Detail
-
beforeClean
@Deprecated void beforeClean(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs before the clean task executes.- Parameters:
connection- A valid connection to the database.
-
afterClean
@Deprecated void afterClean(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs after the clean task executes.- Parameters:
connection- A valid connection to the database.
-
beforeMigrate
@Deprecated void beforeMigrate(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs before the migrate task executes.- Parameters:
connection- A valid connection to the database.
-
afterMigrate
@Deprecated void afterMigrate(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs after the migrate task executes.- Parameters:
connection- A valid connection to the database.
-
beforeUndo
@Deprecated void beforeUndo(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs before the undo task executes.- Parameters:
connection- A valid connection to the database.
-
beforeEachUndo
@Deprecated void beforeEachUndo(Connection connection, MigrationInfo info)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs before each migration script is undone.- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for the migration to be undone.
-
afterEachUndo
@Deprecated void afterEachUndo(Connection connection, MigrationInfo info)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs after each migration script is undone.- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for the migration just undone.
-
afterUndo
@Deprecated void afterUndo(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs after the undo task executes.- Parameters:
connection- A valid connection to the database.
-
beforeEachMigrate
@Deprecated void beforeEachMigrate(Connection connection, MigrationInfo info)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs before each migration script is executed.- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for this migration.
-
afterEachMigrate
@Deprecated void afterEachMigrate(Connection connection, MigrationInfo info)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs after each migration script is executed.- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for this migration.
-
beforeValidate
@Deprecated void beforeValidate(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs before the validate task executes.- Parameters:
connection- A valid connection to the database.
-
afterValidate
@Deprecated void afterValidate(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs after the validate task executes.- Parameters:
connection- A valid connection to the database.
-
beforeBaseline
@Deprecated void beforeBaseline(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs before the baseline task executes.- Parameters:
connection- A valid connection to the database.
-
afterBaseline
@Deprecated void afterBaseline(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs after the baseline task executes.- Parameters:
connection- A valid connection to the database.
-
beforeRepair
@Deprecated void beforeRepair(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs before the repair task executes.- Parameters:
connection- A valid connection to the database.
-
afterRepair
@Deprecated void afterRepair(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs after the repair task executes.- Parameters:
connection- A valid connection to the database.
-
beforeInfo
@Deprecated void beforeInfo(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs before the info task executes.- Parameters:
connection- A valid connection to the database.
-
afterInfo
@Deprecated void afterInfo(Connection connection)
Deprecated.UseCallbackinstead. Will be removed in Flyway 6.0.Runs after the info task executes.- Parameters:
connection- A valid connection to the database.
-
-