| Constructor and Description |
|---|
DefaultCodecs(io.r2dbc.h2.client.Client client)
Constructs a new DefaultCodecs (The Default
Codecs list). |
| 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.
|
public DefaultCodecs(io.r2dbc.h2.client.Client client)
Codecs list).client - for Lobs Codecs and whose class loader is used to search for optional Codecs.@Nullable public <T> T decode(org.h2.value.Value value, int dataType, Class<? extends T> type)
Codecspublic org.h2.value.Value encode(Object value)
Codecspublic org.h2.value.Value encodeNull(Class<?> type)
Codecsnull value.encodeNull in interface Codecstype - the type to encodepublic Class<?> preferredType(int dataType)
CodecspreferredType in interface CodecsdataType - the data type of the dataCopyright © 2022. All rights reserved.