# Uses of Class
oracle.kv.Value

Packages that use Value
Package
Description
oracle.kv
This package contains the public API for using Oracle NoSQL Database.

- ## Uses of Value in oracle.kv

  Fields in oracle.kv declared as Value
  Modifier and Type
  Field
  Description
  `static final Value`
  Value.`EMPTY_VALUE`
  An instance that represents an empty value for key-only records.
  Methods in oracle.kv that return Value
  Modifier and Type
  Method
  Description
  `static Value`
  Value.`createValue(byte[] val)`
  Creates a Value from a value byte array.
  `static Value`
  Value.`fromByteArray(byte[] bytes)`
  Deserializes the given bytes that were returned earlier by `toByteArray()` and returns the resulting Value.
  `Value`
  OperationResult.`getPreviousValue()`
  For a put or delete operation, the previous value associated with the key.
  `Value`
  KeyValue.`getValue()`
  Returns the Value part of the KV pair.
  `Value`
  KeyValueVersion.`getValue()`
  Returns the Value part of the KV pair.
  `Value`
  ValueVersion.`getValue()`
  Returns the Value part of the KV pair.
  `Value`
  ValueBinding.`toValue(T object)`
  Deprecated.
  Before doing a write operation, the user calls `toValue` passing an object she wishes to store.
  Methods in oracle.kv with parameters of type Value
  Modifier and Type
  Method
  Description
  `Operation`
  OperationFactory.`createPut(Key key, Value value)`
  Create a Put operation suitable for use as an argument to the `execute` method.
  `Operation`
  OperationFactory.`createPut(Key key, Value value, ReturnValueVersion.Choice prevReturn, boolean abortIfUnsuccessful)`
  Create a Put operation suitable for use as an argument to the `execute` method.
  `Operation`
  OperationFactory.`createPutIfAbsent(Key key, Value value)`
  Create a Put operation suitable for use as an argument to the `execute` method.
  `Operation`
  OperationFactory.`createPutIfAbsent(Key key, Value value, ReturnValueVersion.Choice prevReturn, boolean abortIfUnsuccessful)`
  Create a Put operation suitable for use as an argument to the `execute` method.
  `Operation`
  OperationFactory.`createPutIfPresent(Key key, Value value)`
  Create a Put operation suitable for use as an argument to the `execute` method.
  `Operation`
  OperationFactory.`createPutIfPresent(Key key, Value value, ReturnValueVersion.Choice prevReturn, boolean abortIfUnsuccessful)`
  Create a Put operation suitable for use as an argument to the `execute` method.
  `Operation`
  OperationFactory.`createPutIfVersion(Key key, Value value, Version version)`
  Create a Put operation suitable for use as an argument to the `execute` method.
  `Operation`
  OperationFactory.`createPutIfVersion(Key key, Value value, Version version, ReturnValueVersion.Choice prevReturn, boolean abortIfUnsuccessful)`
  Create a Put operation suitable for use as an argument to the `execute` method.
  `Version`
  KVStore.`put(Key key, Value value)`
  Put a key/value pair, inserting or overwriting as appropriate.
  `Version`
  KVStore.`put(Key key, Value value, ReturnValueVersion prevValue, Durability durability, long timeout, TimeUnit timeoutUnit)`
  Put a key/value pair, inserting or overwriting as appropriate.
  `Version`
  KVStore.`putIfAbsent(Key key, Value value)`
  Put a key/value pair, but only if no value for the given key is present.
  `Version`
  KVStore.`putIfAbsent(Key key, Value value, ReturnValueVersion prevValue, Durability durability, long timeout, TimeUnit timeoutUnit)`
  Put a key/value pair, but only if no value for the given key is present.
  `Version`
  KVStore.`putIfPresent(Key key, Value value)`
  Put a key/value pair, but only if a value for the given key is present.
  `Version`
  KVStore.`putIfPresent(Key key, Value value, ReturnValueVersion prevValue, Durability durability, long timeout, TimeUnit timeoutUnit)`
  Put a key/value pair, but only if a value for the given key is present.
  `Version`
  KVStore.`putIfVersion(Key key, Value value, Version matchVersion)`
  Put a key/value pair, but only if the version of the existing value matches the matchVersion argument.
  `Version`
  KVStore.`putIfVersion(Key key, Value value, Version matchVersion, ReturnValueVersion prevValue, Durability durability, long timeout, TimeUnit timeoutUnit)`
  Put a key/value pair, but only if the version of the existing value matches the matchVersion argument.
  `ValueVersion`
  ValueVersion.`setValue(Value value)`
  Used internally to initialize the Value part of the KV pair.
  `T`
  ValueBinding.`toObject(Value value)`
  Deprecated.
  After doing a read operation using a `KVStore` method, the user calls `toObject` with the `Value` obtained from the read operation.
  Constructors in oracle.kv with parameters of type Value
  Modifier
  Constructor
  Description
  ``
  `KeyValue(Key key, Value value)`
  Creates a KeyValue, key and value should be non-null.
  ``
  `ValueVersion(Value value, Version version)`
  Used internally to create an object with a value and version.