Class LiquibaseMigrator
java.lang.Object
org.frankframework.jdbc.migration.DatabaseMigratorBase
org.frankframework.jdbc.migration.LiquibaseMigrator
- All Implemented Interfaces:
IConfigurationAware
,IScopeProvider
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
LiquiBase implementation for IAF
- Since:
- 7.0-B4
- Author:
- Niels Meijer
-
Field Summary
Fields inherited from class org.frankframework.jdbc.migration.DatabaseMigratorBase
log
-
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, getApplicationContext, getConfiguration, getConfigurationClassLoader, getDatasourceName, getName, getResource, hasMigrationScript, isEnabled, logConfigurationMessage, lookupMigratorDatasource, setApplicationContext, setDataSourceFactory, setDatasourceName, setDefaultDatasourceName
-
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
-