public class TopiaLiquibaseServiceImpl extends Object implements TopiaLiquibaseService
TopiaApplicationContext will be started
all migrations will be run.| Modifier and Type | Field and Description |
|---|---|
protected liquibase.Contexts |
allContexts |
protected String |
changeLogPath
Place to find the changelog, default name has been fixed according
to best practices.
|
protected liquibase.database.Database |
database |
protected liquibase.Liquibase |
liquibase |
| Constructor and Description |
|---|
TopiaLiquibaseServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
closeDatabase() |
protected liquibase.Liquibase |
getLiquibase(liquibase.database.Database database,
liquibase.resource.ResourceAccessor resourceAccessor) |
protected liquibase.resource.ResourceAccessor |
getResourceAccessor()
Implementation highly inspired from
LiquibaseServletListener. |
String |
getSchemaVersion() |
void |
initOnCreateSchema() |
void |
initTopiaService(TopiaApplicationContext topiaApplicationContext,
Map<String,String> serviceConfiguration) |
protected liquibase.database.Database |
openDatabase(TopiaApplicationContext topiaApplicationContext,
liquibase.resource.ResourceAccessor resourceAccessor) |
void |
runSchemaMigration() |
protected liquibase.Contexts allContexts
protected String changeLogPath
protected liquibase.database.Database database
protected liquibase.Liquibase liquibase
public void initTopiaService(TopiaApplicationContext topiaApplicationContext, Map<String,String> serviceConfiguration)
initTopiaService in interface TopiaServicepublic String getSchemaVersion()
getSchemaVersion in interface TopiaMigrationServicepublic void initOnCreateSchema()
initOnCreateSchema in interface TopiaMigrationServicepublic void runSchemaMigration()
runSchemaMigration in interface TopiaMigrationServiceprotected liquibase.Liquibase getLiquibase(liquibase.database.Database database,
liquibase.resource.ResourceAccessor resourceAccessor)
throws liquibase.exception.LiquibaseException
liquibase.exception.LiquibaseExceptionprotected liquibase.resource.ResourceAccessor getResourceAccessor()
LiquibaseServletListener.protected liquibase.database.Database openDatabase(TopiaApplicationContext topiaApplicationContext, liquibase.resource.ResourceAccessor resourceAccessor)
protected void closeDatabase()
public void close()
close in interface TopiaServiceCopyright © 2004–2018 CodeLutin. All rights reserved.