public final class DefaultServerUpgradeStatus extends Object implements ServerUpgradeStatus
| Constructor and Description |
|---|
DefaultServerUpgradeStatus(DatabaseVersion dbVersion) |
| Modifier and Type | Method and Description |
|---|---|
int |
getInitialDbVersion()
The database version before the server startup.
|
boolean |
isFreshInstall()
Has the database been created from scratch during the current startup ?
|
boolean |
isUpgraded()
Has the database been upgraded during the current startup ? Return false if isInstalledFromScratch() is true.
|
void |
start() |
String |
toString() |
public DefaultServerUpgradeStatus(DatabaseVersion dbVersion)
public void start()
public boolean isUpgraded()
ServerUpgradeStatusisUpgraded in interface ServerUpgradeStatuspublic boolean isFreshInstall()
ServerUpgradeStatusisFreshInstall in interface ServerUpgradeStatuspublic int getInitialDbVersion()
ServerUpgradeStatusgetInitialDbVersion in interface ServerUpgradeStatusCopyright © 2009-2012 SonarSource. All Rights Reserved.