Package oracle.nosql.driver
Class Version
- java.lang.Object
-
- oracle.nosql.driver.Version
-
public class Version extends Object
Version is an opaque class that represents the version of a row in the database. It is returned by successfulNoSQLHandle.get(oracle.nosql.driver.ops.GetRequest)
operations and can be used inPutRequest.setMatchVersion(oracle.nosql.driver.Version)
andDeleteRequest.setMatchVersion(oracle.nosql.driver.Version)
to conditionally perform those operations to ensure an atomic read-modify-write cycle. This is an opaque object from an application perspective.Use of Version in this way adds cost to operations so it should be done only if necessary
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Version
createVersion(byte[] version)
Creates a Version instance from a byte[] which may have been acquired from a query using the row_version() function which returns a FieldValue of type BINARY.
-
-
-
Method Detail
-
createVersion
public static Version createVersion(byte[] version)
Creates a Version instance from a byte[] which may have been acquired from a query using the row_version() function which returns a FieldValue of type BINARY.- Parameters:
version
- the version to use- Returns:
- a new Version instance
-
-