public interface TopiaMigrationService extends TopiaService
TopiaApplicationContext.initSchema() is called, topia will look for
a topia-service that is able to migrate the database. Actually, it will look for
any service implementing this contract.| Modifier and Type | Method and Description |
|---|---|
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 |
runSchemaMigration()
The schema already exists in an unknown version, service should update the schema
if necessary.
|
close, initTopiaServiceString getSchemaVersion() throws TopiaMigrationServiceException
TopiaMigrationServiceExceptionvoid initOnCreateSchema()
throws TopiaMigrationServiceException
TopiaMigrationServiceExceptionvoid runSchemaMigration()
throws TopiaMigrationServiceException
TopiaMigrationServiceExceptionCopyright © 2004–2017 CodeLutin. All rights reserved.