Package org.flywaydb.core.api.callback
Class BaseFlywayCallback
- java.lang.Object
-
- org.flywaydb.core.api.callback.BaseFlywayCallback
-
- All Implemented Interfaces:
FlywayCallback,ConfigurationAware
@Deprecated public abstract class BaseFlywayCallback extends Object implements FlywayCallback, ConfigurationAware
Deprecated.ImplementCallbackinstead. Will be removed in Flyway 6.0.Convenience base no-op implementation of FlywayCallback. Extend this class if you want to implement just a few callback methods without having to provide no-op methods yourself.This implementation also provides direct access to the
FlywayConfigurationas field.
-
-
Field Summary
Fields Modifier and Type Field Description protected FlywayConfigurationflywayConfigurationDeprecated.
-
Constructor Summary
Constructors Constructor Description BaseFlywayCallback()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidafterBaseline(Connection connection)Deprecated.Runs after the baseline task executes.voidafterClean(Connection connection)Deprecated.Runs after the clean task executes.voidafterEachMigrate(Connection connection, MigrationInfo info)Deprecated.Runs after each migration script is executed.voidafterEachUndo(Connection connection, MigrationInfo info)Deprecated.Runs after each migration script is undone.voidafterInfo(Connection connection)Deprecated.Runs after the info task executes.voidafterMigrate(Connection connection)Deprecated.Runs after the migrate task executes.voidafterRepair(Connection connection)Deprecated.Runs after the repair task executes.voidafterUndo(Connection connection)Deprecated.Runs after the undo task executes.voidafterValidate(Connection connection)Deprecated.Runs after the validate task executes.voidbeforeBaseline(Connection connection)Deprecated.Runs before the baseline task executes.voidbeforeClean(Connection connection)Deprecated.Runs before the clean task executes.voidbeforeEachMigrate(Connection connection, MigrationInfo info)Deprecated.Runs before each migration script is executed.voidbeforeEachUndo(Connection connection, MigrationInfo info)Deprecated.Runs before each migration script is undone.voidbeforeInfo(Connection connection)Deprecated.Runs before the info task executes.voidbeforeMigrate(Connection connection)Deprecated.Runs before the migrate task executes.voidbeforeRepair(Connection connection)Deprecated.Runs before the repair task executes.voidbeforeUndo(Connection connection)Deprecated.Runs before the undo task executes.voidbeforeValidate(Connection connection)Deprecated.Runs before the validate task executes.voidsetFlywayConfiguration(FlywayConfiguration flywayConfiguration)Deprecated.Sets the current configuration.
-
-
-
Field Detail
-
flywayConfiguration
protected FlywayConfiguration flywayConfiguration
Deprecated.
-
-
Method Detail
-
setFlywayConfiguration
public void setFlywayConfiguration(FlywayConfiguration flywayConfiguration)
Deprecated.Description copied from interface:ConfigurationAwareSets the current configuration. This method should not be called directly, it is called by Flyway itself.- Specified by:
setFlywayConfigurationin interfaceConfigurationAware- Parameters:
flywayConfiguration- The current Flyway configuration.
-
beforeClean
public void beforeClean(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns before the clean task executes.- Specified by:
beforeCleanin interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
afterClean
public void afterClean(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns after the clean task executes.- Specified by:
afterCleanin interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
beforeMigrate
public void beforeMigrate(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns before the migrate task executes.- Specified by:
beforeMigratein interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
afterMigrate
public void afterMigrate(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns after the migrate task executes.- Specified by:
afterMigratein interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
beforeEachMigrate
public void beforeEachMigrate(Connection connection, MigrationInfo info)
Deprecated.Description copied from interface:FlywayCallbackRuns before each migration script is executed.- Specified by:
beforeEachMigratein interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for this migration.
-
afterEachMigrate
public void afterEachMigrate(Connection connection, MigrationInfo info)
Deprecated.Description copied from interface:FlywayCallbackRuns after each migration script is executed.- Specified by:
afterEachMigratein interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for this migration.
-
beforeUndo
public void beforeUndo(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns before the undo task executes.- Specified by:
beforeUndoin interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
beforeEachUndo
public void beforeEachUndo(Connection connection, MigrationInfo info)
Deprecated.Description copied from interface:FlywayCallbackRuns before each migration script is undone.- Specified by:
beforeEachUndoin interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for the migration to be undone.
-
afterEachUndo
public void afterEachUndo(Connection connection, MigrationInfo info)
Deprecated.Description copied from interface:FlywayCallbackRuns after each migration script is undone.- Specified by:
afterEachUndoin interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.info- The current MigrationInfo for the migration just undone.
-
afterUndo
public void afterUndo(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns after the undo task executes.- Specified by:
afterUndoin interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
beforeValidate
public void beforeValidate(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns before the validate task executes.- Specified by:
beforeValidatein interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
afterValidate
public void afterValidate(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns after the validate task executes.- Specified by:
afterValidatein interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
beforeBaseline
public void beforeBaseline(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns before the baseline task executes.- Specified by:
beforeBaselinein interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
afterBaseline
public void afterBaseline(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns after the baseline task executes.- Specified by:
afterBaselinein interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
beforeRepair
public void beforeRepair(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns before the repair task executes.- Specified by:
beforeRepairin interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
afterRepair
public void afterRepair(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns after the repair task executes.- Specified by:
afterRepairin interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
beforeInfo
public void beforeInfo(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns before the info task executes.- Specified by:
beforeInfoin interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
afterInfo
public void afterInfo(Connection connection)
Deprecated.Description copied from interface:FlywayCallbackRuns after the info task executes.- Specified by:
afterInfoin interfaceFlywayCallback- Parameters:
connection- A valid connection to the database.
-
-