Class LiquibaseMigrator
java.lang.Object
org.frankframework.jdbc.migration.AbstractDatabaseMigrator
org.frankframework.jdbc.migration.LiquibaseMigrator
- All Implemented Interfaces:
HasApplicationContext, IConfigurable, IScopeProvider, ConfigurableLifecycle, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
LiquiBase implementation for FF! Configurations.
- Since:
- 7.0-B4
- Author:
- Niels Meijer
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Resourceprotected voidupdate()Run the migration script against the database.voidRun the migration script and write the output to theWriter.voidRun the provided migration script (against the local database) and write the output to theWriter.protected booleanvalidate()Validate the current already executed ChangeSets against the migration script.Methods inherited from class AbstractDatabaseMigrator
afterPropertiesSet, configure, getApplicationContext, getDatasourceName, getPhase, getResource, hasMigrationScript, isEnabled, isRunning, logConfigurationMessage, lookupMigratorDatasource, setApplicationContext, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigurableLifecycle
isAutoStartup, isConfiguredMethods inherited from interface HasApplicationContext
getConfigurationClassLoaderMethods inherited from interface org.springframework.context.SmartLifecycle
isPauseable, stop
-
Constructor Details
-
LiquibaseMigrator
public LiquibaseMigrator()
-
-
Method Details
-
getChangeLog
- Specified by:
getChangeLogin classAbstractDatabaseMigrator
-
validate
Description copied from class:AbstractDatabaseMigratorValidate the current already executed ChangeSets against the migration script. Either true or false if successful or an exception when unable to initialize.- Specified by:
validatein classAbstractDatabaseMigrator- Throws:
JdbcMigrationException
-
update
Description copied from class:AbstractDatabaseMigratorRun the migration script against the database.- Specified by:
updatein classAbstractDatabaseMigrator- Throws:
JdbcMigrationException
-
update
Description copied from class:AbstractDatabaseMigratorRun the migration script and write the output to theWriter.- Specified by:
updatein classAbstractDatabaseMigrator- Throws:
JdbcException
-
update
Description copied from class:AbstractDatabaseMigratorRun the provided migration script (against the local database) and write the output to theWriter.- Specified by:
updatein classAbstractDatabaseMigrator- Throws:
JdbcException
-