public interface DBVersionConverter
| Modifier and Type | Method and Description |
|---|---|
DBVersionControl |
getVersionControl() |
com.google.gson.JsonObject |
upgrade(com.google.gson.JsonObject outdatedDBEntry,
Map<File,com.google.gson.JsonObject> dbSnapshot)
This method applies an upgrade transaction on the given entry to push the entry to the next db version.
|
com.google.gson.JsonObject upgrade(com.google.gson.JsonObject outdatedDBEntry,
Map<File,com.google.gson.JsonObject> dbSnapshot)
throws CouldNotPerformException
outdatedDBEntry - the outdated db entry where the upgrade should be applied to.dbSnapshot - all entries of the current database which may are partially upgraded.CouldNotPerformException - can be thrown in case the upgrade could not be performed.DBVersionControl getVersionControl()
Copyright © 2015–2018 openbase.org. All rights reserved.