com.xpn.xwiki.store.migration
Interface DataMigrationStatus
public interface DataMigrationStatus
Common interface to report data migration status.
- Since:
- 4.4.1
- Version:
- $Id: 0c115666bf33e4566474aa4668c7d6aa15aba41c $
getDBVersion
XWikiDBVersion getDBVersion()
throws DataMigrationException
- Returns:
- current DB version or null for a new database
- Throws:
DataMigrationException
- if any error
hasDataMigrationBeenAttempted
boolean hasDataMigrationBeenAttempted()
- Returns:
- true if any migration has been attempted on current database
hasBeenSuccessfullyMigrated
boolean hasBeenSuccessfullyMigrated()
- Returns:
- true if all attempted migrations has been successfully applied on current database
getLastMigrationException
Exception getLastMigrationException()
- Returns:
- the exception returned on failure by the last attempted migration on this database
Copyright © 2004-2013 XWiki. All Rights Reserved.