Class LiquibaseMigrator
java.lang.Object
org.frankframework.jdbc.migration.DatabaseMigratorBase
org.frankframework.jdbc.migration.LiquibaseMigrator
- All Implemented Interfaces:
IConfigurationAware
,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.DatabaseMigratorBase
log
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
update()
Run the migration script against the database.void
Run the migration script and write the output to theWriter
.void
Run the provided migration script (against the local database) and write the output to theWriter
.boolean
validate()
Validate the current already executed ChangeSets against the migration scriptMethods inherited from class org.frankframework.jdbc.migration.DatabaseMigratorBase
afterPropertiesSet, configure, getApplicationContext, getConfiguration, getConfigurationClassLoader, getDatasourceName, getName, getPhase, getResource, hasMigrationScript, isEnabled, isRunning, logConfigurationMessage, lookupMigratorDatasource, setApplicationContext, setDataSourceFactory, setDatasourceName, setDefaultDatasourceName, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.lifecycle.ConfigurableLifecycle
isAutoStartup
Methods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Field Details
-
migrationLog
protected org.apache.logging.log4j.Logger migrationLog
-
-
Constructor Details
-
LiquibaseMigrator
public LiquibaseMigrator()
-
-
Method Details
-
getChangeLog
- Specified by:
getChangeLog
in classDatabaseMigratorBase
-
validate
public boolean validate()Description copied from class:DatabaseMigratorBase
Validate the current already executed ChangeSets against the migration script- Specified by:
validate
in classDatabaseMigratorBase
-
update
public void update()Description copied from class:DatabaseMigratorBase
Run the migration script against the database.- Specified by:
update
in classDatabaseMigratorBase
-
update
Description copied from class:DatabaseMigratorBase
Run the migration script and write the output to theWriter
.- Specified by:
update
in classDatabaseMigratorBase
- Throws:
JdbcException
-
update
Description copied from class:DatabaseMigratorBase
Run the provided migration script (against the local database) and write the output to theWriter
.- Specified by:
update
in classDatabaseMigratorBase
- Throws:
JdbcException
-