Package oracle.kv
Interface ValueBinding<T>
- Type Parameters:
T- is the type of the deserialized object that is passed totoValueand 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
Values (stored byte
arrays) and typed objects representing that value. In other words, this
interface is used for serialization and deserialization of Values.- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Before doing a write operation, the user callstoValuepassing an object she wishes to store.
-
Method Details
-
toObject
Deprecated.After doing a read operation using aKVStoremethod, the user callstoObjectwith theValueobtained from the read operation.- Parameters:
value- theValueobtained from aKVStoreread 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 callstoValuepassing an object she wishes to store. The resultingValueis 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
-