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 public interface ValueBinding<T>
Deprecated.as of 4.0, use the table API instead.Generic interface for translating betweenValue
s (stored byte arrays) and typed objects representing that value. In other words, this interface is used for serialization and deserialization ofValue
s.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description T
toObject(Value value)
Deprecated.Value
toValue(T object)
Deprecated.Before doing a write operation, the user callstoValue
passing an object she wishes to store.
-
-
-
Method Detail
-
toObject
T toObject(Value value) throws RuntimeException
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
Value toValue(T object) throws RuntimeException
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
-
-