Package org.mariadb.jdbc.codec.list
Class LocalTimeCodec
- java.lang.Object
-
- org.mariadb.jdbc.codec.list.LocalTimeCodec
-
-
Field Summary
Fields Modifier and Type Field Description static LocalTimeCodecINSTANCE
-
Constructor Summary
Constructors Constructor Description LocalTimeCodec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDecode(ColumnDefinitionPacket column, Class<?> type)booleancanEncode(Object value)StringclassName()LocalTimedecodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal)LocalTimedecodeText(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal)voidencodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength)voidencodeText(PacketWriter encoder, Context context, Object value, Calendar cal, Long maxLen)intgetBinaryEncodeType()static int[]parseTime(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column)-
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 Detail
-
INSTANCE
public static final LocalTimeCodec INSTANCE
-
-
Method Detail
-
parseTime
public static int[] parseTime(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column) throws SQLDataException- Throws:
SQLDataException
-
canDecode
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
-
canEncode
public boolean canEncode(Object value)
-
decodeText
public LocalTime decodeText(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeTextin interfaceCodec<LocalTime>- Throws:
SQLDataException
-
decodeBinary
public LocalTime decodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeBinaryin interfaceCodec<LocalTime>- Throws:
SQLDataException
-
encodeText
public void encodeText(PacketWriter encoder, Context context, Object value, Calendar cal, Long maxLen) throws IOException
- Specified by:
encodeTextin interfaceCodec<LocalTime>- Throws:
IOException
-
encodeBinary
public void encodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength) throws IOException
- Specified by:
encodeBinaryin interfaceCodec<LocalTime>- Throws:
IOException
-
getBinaryEncodeType
public int getBinaryEncodeType()
- Specified by:
getBinaryEncodeTypein interfaceCodec<LocalTime>
-
-