public interface Codecs
| Modifier and Type | Method and Description |
|---|---|
<T> T |
decode(io.netty.buffer.ByteBuf buffer,
int dataType,
io.r2dbc.postgresql.message.Format format,
Class<? extends T> type)
Decode a data to a value.
|
io.r2dbc.postgresql.client.EncodedParameter |
encode(Object value)
Encode a value.
|
io.r2dbc.postgresql.client.EncodedParameter |
encodeNull(Class<?> type)
Encode a
null value. |
Class<?> |
preferredType(int dataType,
io.r2dbc.postgresql.message.Format format)
Returns the preferred Java type for a given data type and format.
|
@Nullable <T> T decode(@Nullable io.netty.buffer.ByteBuf buffer, int dataType, io.r2dbc.postgresql.message.Format format, Class<? extends T> type)
T - the type of item being returnedbuffer - the ByteBuf to decodedataType - the data type of the dataformat - the format of the datatype - the type to decode toIllegalArgumentException - if format or type is nullio.r2dbc.postgresql.client.EncodedParameter encode(Object value)
value - the value to encodeIllegalArgumentException - if value is nullio.r2dbc.postgresql.client.EncodedParameter encodeNull(Class<?> type)
null value.type - the type to encodeIllegalArgumentException - if type is null@Nullable Class<?> preferredType(int dataType, io.r2dbc.postgresql.message.Format format)
dataType - the data type fo the dataformat - the format of the dataIllegalArgumentException - if format is nullCopyright © 2023. All rights reserved.