Package org.mariadb.jdbc.codec.list
Class LongCodec
- java.lang.Object
-
- org.mariadb.jdbc.codec.list.LongCodec
-
-
Constructor Summary
Constructors Constructor Description LongCodec()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDecode(ColumnDefinitionPacket column, Class<?> type)booleancanEncode(Object value)StringclassName()LongdecodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buffer, int length, ColumnDefinitionPacket column, Calendar cal)longdecodeBinaryLong(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column)LongdecodeText(org.mariadb.jdbc.client.ReadableByteBuf buffer, int length, ColumnDefinitionPacket column, Calendar cal)longdecodeTextLong(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()static longparseNotEmpty(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 LongCodec INSTANCE
-
-
Method Detail
-
parseNotEmpty
public static long parseNotEmpty(org.mariadb.jdbc.client.ReadableByteBuf buf, int length)
-
canDecode
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
-
decodeText
public Long decodeText(org.mariadb.jdbc.client.ReadableByteBuf buffer, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeTextin interfaceCodec<Long>- Throws:
SQLDataException
-
decodeTextLong
public long decodeTextLong(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column) throws SQLDataException- Throws:
SQLDataException
-
decodeBinary
public Long decodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buffer, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeBinaryin interfaceCodec<Long>- Throws:
SQLDataException
-
decodeBinaryLong
public long decodeBinaryLong(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<Long>- Throws:
IOException
-
encodeBinary
public void encodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength) throws IOException
- Specified by:
encodeBinaryin interfaceCodec<Long>- Throws:
IOException
-
getBinaryEncodeType
public int getBinaryEncodeType()
- Specified by:
getBinaryEncodeTypein interfaceCodec<Long>
-
-