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 IAF
- Since:
- 7.0-B4
- Author:
- Niels Meijer
-
Field Summary
Fields inherited from class org.frankframework.jdbc.migration.AbstractDatabaseMigrator
logFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdate()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.booleanvalidate()Validate the current already executed ChangeSets against the migration scriptMethods inherited from class org.frankframework.jdbc.migration.AbstractDatabaseMigrator
afterPropertiesSet, configure, getApplicationContext, getDatasourceName, getPhase, getResource, hasMigrationScript, isEnabled, isRunning, logConfigurationMessage, lookupMigratorDatasource, setApplicationContext, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle
isAutoStartup, isConfiguredMethods inherited from interface org.frankframework.core.HasApplicationContext
getConfigurationClassLoaderMethods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
LiquibaseMigrator
public LiquibaseMigrator()
-
-
Method Details
-
getChangeLog
- Specified by:
getChangeLogin classAbstractDatabaseMigrator
-
validate
public boolean validate()Description copied from class:AbstractDatabaseMigratorValidate the current already executed ChangeSets against the migration script- Specified by:
validatein classAbstractDatabaseMigrator
-
update
public void update()Description copied from class:AbstractDatabaseMigratorRun the migration script against the database.- Specified by:
updatein classAbstractDatabaseMigrator
-
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
-