public class PersistenceLayer extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
LATEST_VERSION |
| Constructor and Description |
|---|
PersistenceLayer() |
| Modifier and Type | Method and Description |
|---|---|
protected static crux.api.CruxDocument |
getPersistenceDetails(crux.api.ICruxAPI cruxAPI)
Retrieve details about the persistence layer from the provided Crux back-end.
|
static long |
getVersion(crux.api.ICruxAPI cruxAPI)
Retrieve the version of the persistence layer for the provided Crux back-end.
|
static boolean |
isLatestVersion(crux.api.ICruxAPI cruxAPI)
Check whether the persistence layer for the provided Crux back-end is the latest or not.
|
static void |
setVersion(crux.api.ICruxAPI cruxAPI,
long version)
Set the version of the persistence layer for the provided Crux back-end.
|
public static final long LATEST_VERSION
public static long getVersion(crux.api.ICruxAPI cruxAPI)
cruxAPI - the Crux back-end for which to retrieve the persistence layer versionpublic static void setVersion(crux.api.ICruxAPI cruxAPI,
long version)
cruxAPI - the Crux back-end for which to set the persistence layer versionversion - to setpublic static boolean isLatestVersion(crux.api.ICruxAPI cruxAPI)
cruxAPI - the Crux back-end for which to check the persistence layer versionprotected static crux.api.CruxDocument getPersistenceDetails(crux.api.ICruxAPI cruxAPI)
cruxAPI - the Crux back-end for which to retrieve the persistence layer detailsCopyright © 2021 ODPi. All rights reserved.