public interface GlobalDBVersionConverter extends DBVersionConverter
| Modifier and Type | Method and Description |
|---|---|
default 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.
|
default com.google.gson.JsonObject |
upgrade(com.google.gson.JsonObject outdatedDBEntry,
Map<File,com.google.gson.JsonObject> dbSnapshot,
Map<String,Map<File,DatabaseEntryDescriptor>> globalDbSnapshots)
This method applies an update transaction on the given entry to push the entry to the next db version.
|
getVersionControldefault com.google.gson.JsonObject upgrade(com.google.gson.JsonObject outdatedDBEntry,
Map<File,com.google.gson.JsonObject> dbSnapshot,
Map<String,Map<File,DatabaseEntryDescriptor>> globalDbSnapshots)
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.globalDbSnapshots - a map of the globally available databases to apply global database transactions. The key of the map is the filename of the global database.CouldNotPerformException - can be thrown in case the upgrade could not be performed.default com.google.gson.JsonObject upgrade(com.google.gson.JsonObject outdatedDBEntry,
Map<File,com.google.gson.JsonObject> dbSnapshot)
throws CouldNotPerformException
DBVersionConverterupgrade in interface DBVersionConverteroutdatedDBEntry - 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.Copyright © 2015–2018 openbase.org. All rights reserved.