|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Role public interface DataMigrationManager
Interface for all migration managers.
Method Summary | |
---|---|
void |
checkDatabase()
Check current database version and proceed to migrations. |
DataMigrationStatus |
getDataMigrationStatus()
|
XWikiDBVersion |
getDBVersion()
|
XWikiDBVersion |
getLatestVersion()
|
void |
initNewDB()
Setup the schema of a new DB and set it to the latest version (not running migrations). |
Method Detail |
---|
XWikiDBVersion getDBVersion() throws DataMigrationException
DataMigrationException
- if any errorDataMigrationStatus getDataMigrationStatus() throws DataMigrationException
DataMigrationException
- if any errorvoid checkDatabase() throws MigrationRequiredException, DataMigrationException
MigrationRequiredException
- when version is incompatible with current version
DataMigrationException
- when an error occurs during check.XWikiDBVersion getLatestVersion()
void initNewDB() throws DataMigrationException
DataMigrationException
- if any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |