Package oracle.kv
Interface ValueBinding<T>
- Type Parameters:
T
- is the type of the deserialized object that is passed totoValue
and returned bytoObject
. The specific type depends on the particular binding that is used.
Deprecated.
as of 4.0, use the table API instead.
Generic interface for translating between
Value
s (stored byte
arrays) and typed objects representing that value. In other words, this
interface is used for serialization and deserialization of Value
s.- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Before doing a write operation, the user callstoValue
passing an object she wishes to store.
-
Method Details
-
toObject
Deprecated.After doing a read operation using aKVStore
method, the user callstoObject
with theValue
obtained from the read operation.- Parameters:
value
- theValue
obtained from aKVStore
read operation method.- Returns:
- the deserialized object.
- Throws:
RuntimeException
- if a parameter value is disallowed by the binding
-
toValue
Deprecated.Before doing a write operation, the user callstoValue
passing an object she wishes to store. The resultingValue
is then passed to the write operation method inKVStore
.- Parameters:
object
- the object the user wishes to store, or at least serialize.- Returns:
- the serialized object.
- Throws:
RuntimeException
- if a parameter value is disallowed by the binding
-