Class VersionedSettingsDBVersionImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.VersionedSettingsDBVersionImpl
-
- All Implemented Interfaces:
VersionedSettingsDBVersion
public class VersionedSettingsDBVersionImpl extends Object implements VersionedSettingsDBVersion
-
-
Constructor Summary
Constructors Constructor Description VersionedSettingsDBVersionImpl(ServerPaths serverPaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCurrentVersion()
int
getLastUsedVersion()
void
setLastUsedVersion(int version)
Persist last used DB version
-
-
-
Constructor Detail
-
VersionedSettingsDBVersionImpl
public VersionedSettingsDBVersionImpl(@NotNull ServerPaths serverPaths)
-
-
Method Detail
-
getCurrentVersion
public int getCurrentVersion()
- Specified by:
getCurrentVersion
in interfaceVersionedSettingsDBVersion
- Returns:
- current version of DB schema
-
getLastUsedVersion
public int getLastUsedVersion()
- Specified by:
getLastUsedVersion
in interfaceVersionedSettingsDBVersion
- 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
public void setLastUsedVersion(int version)
Description copied from interface:VersionedSettingsDBVersion
Persist last used DB version- Specified by:
setLastUsedVersion
in interfaceVersionedSettingsDBVersion
- Parameters:
version
- DB version
-
-