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