Interface VersionedSettingsDBVersion
-
- All Known Implementing Classes:
VersionedSettingsDBVersionImpl
public interface VersionedSettingsDBVersion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCurrentVersion()
int
getLastUsedVersion()
void
setLastUsedVersion(int version)
Persist last used DB version
-
-
-
Method Detail
-
getCurrentVersion
int getCurrentVersion()
- Returns:
- current version of DB schema
-
getLastUsedVersion
int getLastUsedVersion()
- Returns:
- the version of DB schema used during last commit or -1 in case of any error or when last used version cannot be found
-
setLastUsedVersion
void setLastUsedVersion(int version)
Persist last used DB version- Parameters:
version
- DB version
-
-