Class LiquibaseBasedSchemaManager
- java.lang.Object
-
- org.flowable.common.engine.impl.db.LiquibaseBasedSchemaManager
-
- All Implemented Interfaces:
SchemaManager
public abstract class LiquibaseBasedSchemaManager extends Object implements SchemaManager
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected StringchangeLogFileprotected StringchangeLogPrefixprotected Stringcontextprotected static Map<String,Object>LIQUIBASE_SCOPE_VALUESprotected org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description LiquibaseBasedSchemaManager(String context, String changeLogFile, String changeLogPrefix)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcloseDatabase(liquibase.Liquibase liquibase)protected liquibase.LiquibasecreateLiquibaseInstance(LiquibaseDatabaseConfiguration databaseConfiguration)protected abstract LiquibaseDatabaseConfigurationgetDatabaseConfiguration()voidinitSchema(String databaseSchemaUpdate)protected voidrunForLiquibase(Runnable runnable)voidschemaCheckVersion()voidschemaCreate()voidschemaDrop()StringschemaUpdate()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flowable.common.engine.impl.db.SchemaManager
schemaUpdate
-
-
-
-
Method Detail
-
initSchema
public void initSchema(String databaseSchemaUpdate)
-
runForLiquibase
protected void runForLiquibase(Runnable runnable) throws Exception
- Throws:
Exception
-
schemaCreate
public void schemaCreate()
- Specified by:
schemaCreatein interfaceSchemaManager
-
schemaDrop
public void schemaDrop()
- Specified by:
schemaDropin interfaceSchemaManager
-
schemaUpdate
public String schemaUpdate()
- Specified by:
schemaUpdatein interfaceSchemaManager
-
schemaCheckVersion
public void schemaCheckVersion()
- Specified by:
schemaCheckVersionin interfaceSchemaManager
-
getDatabaseConfiguration
protected abstract LiquibaseDatabaseConfiguration getDatabaseConfiguration()
-
createLiquibaseInstance
protected liquibase.Liquibase createLiquibaseInstance(LiquibaseDatabaseConfiguration databaseConfiguration) throws SQLException
- Throws:
SQLException
-
closeDatabase
protected void closeDatabase(liquibase.Liquibase liquibase)
-
-