public class HibernateTopiaMigrationService extends Object implements TopiaMigrationService
| Modifier and Type | Field and Description |
|---|---|
protected TopiaApplicationContext |
topiaApplicationContext |
| Constructor and Description |
|---|
HibernateTopiaMigrationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called when service is no longer necessary.
|
String |
getSchemaVersion() |
void |
initOnCreateSchema()
The schema has been created by ToPIA, the service should init the migration engine
and store the schema version somewhere.
|
void |
initTopiaService(TopiaApplicationContext topiaApplicationContext,
Map<String,String> serviceConfiguration)
Initialize the service.
|
void |
runSchemaMigration()
The schema already exists in an unknown version, service should update the schema
if necessary.
|
protected TopiaApplicationContext topiaApplicationContext
public void initTopiaService(TopiaApplicationContext topiaApplicationContext, Map<String,String> serviceConfiguration)
TopiaServiceinitTopiaService in interface TopiaServicetopiaApplicationContext - is the TopiaApplicationContext
to which the current service is attached. It's the service
responsibility to keep a reference to it.serviceConfiguration - all the configuration directives for this service.public String getSchemaVersion()
getSchemaVersion in interface TopiaMigrationServicepublic void initOnCreateSchema()
TopiaMigrationServiceinitOnCreateSchema in interface TopiaMigrationServicepublic void runSchemaMigration()
TopiaMigrationServicerunSchemaMigration in interface TopiaMigrationServicepublic void close()
TopiaServiceTopiaApplicationContext.close()
is called.close in interface TopiaServiceCopyright © 2004–2017 CodeLutin. All rights reserved.