public interface Codecs
| Modifier and Type | Method and Description |
|---|---|
<T> T |
decode(org.h2.value.Value value,
int dataType,
Class<? extends T> type)
Decode a data to a value.
|
org.h2.value.Value |
encode(Object value)
Encode a value.
|
org.h2.value.Value |
encodeNull(Class<?> type)
Encode a
null value. |
Class<?> |
preferredType(int dataType)
Returns the preferred Java type for a given data type and format.
|
@Nullable <T> T decode(@Nullable org.h2.value.Value value, int dataType, Class<? extends T> type)
T - the type of item being returnedvalue - the Value to decodedataType - the data type of the datatype - the type to decode toNullPointerException - if format or type is nullorg.h2.value.Value encode(Object value)
value - the value to encodeNullPointerException - if value is nullorg.h2.value.Value encodeNull(Class<?> type)
null value.type - the type to encodeNullPointerException - if type is nullCopyright © 2022. All rights reserved.