public class TopiaFlywayServiceImpl extends Object implements TopiaFlywayService
TopiaFlywayService.| Modifier and Type | Field and Description |
|---|---|
protected com.googlecode.flyway.core.Flyway |
flyway |
protected String |
flywayInitVersion
Value for
TopiaFlywayService.FLYWAY_INIT_VERSION configuration parameter. |
protected String |
modelVersion |
FLYWAY_INIT_VERSION| Constructor and Description |
|---|
TopiaFlywayServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExtraConfiguration(com.googlecode.flyway.core.Flyway flyway,
TopiaApplicationContext topiaApplicationContext)
Opened hook to override in a sub-class.
|
Class<?>[] |
getPersistenceClasses() |
void |
initOnCreateSchema() |
void |
initTopiaService(TopiaApplicationContext topiaApplicationContext,
Map<String,String> serviceConfiguration) |
void |
runSchemaMigration() |
protected void |
setDataSource(com.googlecode.flyway.core.Flyway flyway,
TopiaApplicationContext topiaApplicationContext)
Define flyway database credentials.
|
protected void |
setLocations(com.googlecode.flyway.core.Flyway flyway,
TopiaApplicationContext topiaApplicationContext)
Define where Flyway should look for migrations.
|
protected String flywayInitVersion
TopiaFlywayService.FLYWAY_INIT_VERSION configuration parameter.protected com.googlecode.flyway.core.Flyway flyway
protected String modelVersion
public void initTopiaService(TopiaApplicationContext topiaApplicationContext, Map<String,String> serviceConfiguration)
initTopiaService in interface TopiaServicepublic Class<?>[] getPersistenceClasses()
getPersistenceClasses in interface TopiaServiceprotected void setDataSource(com.googlecode.flyway.core.Flyway flyway,
TopiaApplicationContext topiaApplicationContext)
TopiaApplicationContext.getConfiguration(). We use
the same credentials to migrate the database as the one used when we use it.protected void setLocations(com.googlecode.flyway.core.Flyway flyway,
TopiaApplicationContext topiaApplicationContext)
protected void doExtraConfiguration(com.googlecode.flyway.core.Flyway flyway,
TopiaApplicationContext topiaApplicationContext)
public void initOnCreateSchema()
initOnCreateSchema in interface TopiaMigrationServicepublic void runSchemaMigration()
runSchemaMigration in interface TopiaMigrationServiceCopyright © 2004–2014 CodeLutin. All rights reserved.