Class DefaultCodecs
java.lang.Object
io.r2dbc.h2.codecs.DefaultCodecs
- All Implemented Interfaces:
Codecs
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCodecs(io.r2dbc.h2.client.Client client) Constructs a new DefaultCodecs (The DefaultCodecs list). -
Method Summary
Modifier and TypeMethodDescription<T> TDecode a data to a value.org.h2.value.ValueEncode a value.org.h2.value.ValueencodeNull(Class<?> type) Encode anullvalue.Class<?> preferredType(int dataType) Returns the preferred Java type for a given data type and format.
-
Constructor Details
-
DefaultCodecs
public DefaultCodecs(io.r2dbc.h2.client.Client client) Constructs a new DefaultCodecs (The DefaultCodecs list).- Parameters:
client- for LobsCodecs and whose class loader is used to search for optionalCodecs.
-
-
Method Details
-
decode
Description copied from interface:CodecsDecode a data to a value. -
encode
-
encodeNull
Description copied from interface:CodecsEncode anullvalue.- Specified by:
encodeNullin interfaceCodecs- Parameters:
type- the type to encode- Returns:
- the encoded value
-
preferredType
Description copied from interface:CodecsReturns the preferred Java type for a given data type and format.- Specified by:
preferredTypein interfaceCodecs- Parameters:
dataType- the data type of the data- Returns:
- the preferred Java type for a given data type
-