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