Package org.mariadb.jdbc.codec.list
Class ZonedDateTimeCodec
java.lang.Object
org.mariadb.jdbc.codec.list.ZonedDateTimeCodec
- All Implemented Interfaces:
Codec<ZonedDateTime>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canDecode
(ColumnDefinitionPacket column, Class<?> type) boolean
decodeBinary
(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar calParam) decodeText
(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar calParam) void
encodeBinary
(PacketWriter encoder, Object value, Calendar calParam, Long maxLength) void
encodeText
(PacketWriter encoder, Context context, Object val, Calendar calParam, Long maxLen) int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mariadb.jdbc.plugin.Codec
canEncodeLongData, encodeData, encodeLongData
-
Field Details
-
INSTANCE
-
COMPATIBLE_TYPES
-
-
Constructor Details
-
ZonedDateTimeCodec
public ZonedDateTimeCodec()
-
-
Method Details
-
className
- Specified by:
className
in interfaceCodec<ZonedDateTime>
-
canDecode
- Specified by:
canDecode
in interfaceCodec<ZonedDateTime>
-
canEncode
- Specified by:
canEncode
in interfaceCodec<ZonedDateTime>
-
decodeText
public ZonedDateTime decodeText(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar calParam) throws SQLDataException - Specified by:
decodeText
in interfaceCodec<ZonedDateTime>
- Throws:
SQLDataException
-
decodeBinary
public ZonedDateTime decodeBinary(ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar calParam) throws SQLDataException - Specified by:
decodeBinary
in interfaceCodec<ZonedDateTime>
- Throws:
SQLDataException
-
encodeText
public void encodeText(PacketWriter encoder, Context context, Object val, Calendar calParam, Long maxLen) throws IOException - Specified by:
encodeText
in interfaceCodec<ZonedDateTime>
- Throws:
IOException
-
encodeBinary
public void encodeBinary(PacketWriter encoder, Object value, Calendar calParam, Long maxLength) throws IOException - Specified by:
encodeBinary
in interfaceCodec<ZonedDateTime>
- Throws:
IOException
-
getBinaryEncodeType
public int getBinaryEncodeType()- Specified by:
getBinaryEncodeType
in interfaceCodec<ZonedDateTime>
-