Package org.nuiton.topia.persistence
Interface TopiaMigrationService
- All Superinterfaces:
TopiaService
- All Known Implementing Classes:
HibernateTopiaMigrationService
When
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.- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidThe schema has been created by ToPIA, the service should init the migration engine and store the schema version somewhere.voidThe schema already exists in an unknown version, service should update the schema if necessary.Methods inherited from interface org.nuiton.topia.persistence.TopiaService
close, initTopiaService
-
Method Details
-
getSchemaVersion
- Returns:
- the schema version according to the meta-data information about the actual current state of the schema in the database.
- Throws:
TopiaMigrationServiceException
-
initOnCreateSchema
The schema has been created by ToPIA, the service should init the migration engine and store the schema version somewhere.- Throws:
TopiaMigrationServiceException
-
runSchemaMigration
The schema already exists in an unknown version, service should update the schema if necessary.- Throws:
TopiaMigrationServiceException
-