public class SchemaVersionStore
extends java.lang.Object
| Constructor and Description |
|---|
SchemaVersionStore(Persister persister)
Creates a new version store against the provided Framework Name, as would be provided to
ConfigStore or StateStore. |
| Modifier and Type | Method and Description |
|---|---|
int |
fetch()
Retrieves the current schema version.
|
static boolean |
isSupported(int current,
int min,
int max)
Convenience method for checking whether the current schema version falls within a supported
range.
|
void |
store(int version)
Updates the schema version to the provided value.
|
SchemaVersionStore(Persister persister)
ConfigStore or StateStore.public int fetch()
throws StateStoreException
StateStoreException - if retrieving the schema version failspublic void store(int version)
throws StateStoreException
version - the new schema version to storeStateStoreException - if storing the schema version failspublic static boolean isSupported(int current,
int min,
int max)