public class VersionChecker extends Object
| Constructor and Description |
|---|
VersionChecker() |
| Modifier and Type | Method and Description |
|---|---|
static void |
readAndCheckVersion(ObjectInput input,
int supportedVersion,
Class<?> externalizedType)
Consumes the version field from the given input and raises an exception if the record is in a newer version,
written by a newer version of Hibernate OGM.
|
public static void readAndCheckVersion(ObjectInput input, int supportedVersion, Class<?> externalizedType) throws IOException
input - the input to read fromsupportedVersion - the type version supported by this version of OGMexternalizedType - the type to be unmarshalledIOException - if an error occurs while reading the inputCopyright © 2010–2016 Hibernate. All rights reserved.