T - the type without parameter that is handled by this codec.public interface ParameterizedCodec<T> extends Codec<T>
It also can encode and decode values without parameter.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(MySqlReadableMetadata metadata,
ParameterizedType target)
Checks if the field value can be decoded as specified
ParameterizedType. |
@Nullable Object |
decode(io.netty.buffer.ByteBuf value,
MySqlReadableMetadata metadata,
ParameterizedType target,
boolean binary,
CodecContext context)
Decodes a
ByteBuf as specified ParameterizedType. |
@Nullable @Nullable Object decode(io.netty.buffer.ByteBuf value, MySqlReadableMetadata metadata, ParameterizedType target, boolean binary, CodecContext context)
ByteBuf as specified ParameterizedType.value - the ByteBuf.metadata - the metadata of the column or the OUT parameter.target - the specified ParameterizedType.binary - if the value should be decoded by binary protocol.context - the codec context.boolean canDecode(MySqlReadableMetadata metadata, ParameterizedType target)
ParameterizedType.metadata - the metadata of the column or the OUT parameter.target - the specified ParameterizedType.Copyright © 2018–2024 asyncer.io. All rights reserved.