public class BigIntegerCodec extends Object
Constructor and Description |
---|
BigIntegerCodec(io.netty.buffer.ByteBufAllocator byteBufAllocator) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDecode(int dataType,
io.r2dbc.postgresql.message.Format format,
Class<?> type)
|
boolean |
canEncode(Object value)
Determine whether this
Codec is capable of encoding the value . |
boolean |
canEncodeNull(Class<?> type)
|
T |
decode(io.netty.buffer.ByteBuf buffer,
int dataType,
io.r2dbc.postgresql.message.Format format,
Class<? extends T> type)
Decode the
buffer and return it as the requested type . |
io.r2dbc.postgresql.client.Parameter |
encode(Object value)
Encode the
value to be used as RPC parameter. |
io.r2dbc.postgresql.client.Parameter |
encodeNull()
Encode a
null value. |
Class<?> |
type()
Returns the Java
type of this codec. |
public BigIntegerCodec(io.netty.buffer.ByteBufAllocator byteBufAllocator)
public io.r2dbc.postgresql.client.Parameter encodeNull()
Codec
null
value.null
valuepublic boolean canDecode(int dataType, io.r2dbc.postgresql.message.Format format, Class<?> type)
Codec
public boolean canEncode(Object value)
Codec
Codec
is capable of encoding the value
.canEncode
in interface Codec<T>
value
- the parameter valuetrue
if this Codec
is able to encode the value
.Codec.encodeNull()
public final boolean canEncodeNull(Class<?> type)
Codec
canEncodeNull
in interface Codec<T>
type
- the desired value typetrue
if this Codec
is able to encode null
values for the given Class
type.Codec.encodeNull()
@Nullable public final T decode(@Nullable io.netty.buffer.ByteBuf buffer, int dataType, io.r2dbc.postgresql.message.Format format, Class<? extends T> type)
Codec
buffer
and return it as the requested type
.public final io.r2dbc.postgresql.client.Parameter encode(Object value)
Codec
value
to be used as RPC parameter.Copyright © 2020. All rights reserved.