Package org.mariadb.jdbc.codec.list
Class BigIntegerCodec
- java.lang.Object
-
- org.mariadb.jdbc.codec.list.BigIntegerCodec
-
- All Implemented Interfaces:
Codec<BigInteger>
public class BigIntegerCodec extends Object implements Codec<BigInteger>
-
-
Field Summary
Fields Modifier and Type Field Description static BigIntegerCodecINSTANCE
-
Constructor Summary
Constructors Constructor Description BigIntegerCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDecode(ColumnDefinitionPacket column, Class<?> type)booleancanEncode(Object value)StringclassName()BigIntegerdecodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal)BigIntegerdecodeText(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 length)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 BigIntegerCodec INSTANCE
-
-
Method Detail
-
className
public String className()
- Specified by:
classNamein interfaceCodec<BigInteger>
-
canDecode
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
- Specified by:
canDecodein interfaceCodec<BigInteger>
-
canEncode
public boolean canEncode(Object value)
- Specified by:
canEncodein interfaceCodec<BigInteger>
-
decodeText
public BigInteger decodeText(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeTextin interfaceCodec<BigInteger>- Throws:
SQLDataException
-
decodeBinary
public BigInteger decodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeBinaryin interfaceCodec<BigInteger>- Throws:
SQLDataException
-
encodeText
public void encodeText(PacketWriter encoder, Context context, Object value, Calendar cal, Long length) throws IOException
- Specified by:
encodeTextin interfaceCodec<BigInteger>- Throws:
IOException
-
encodeBinary
public void encodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength) throws IOException
- Specified by:
encodeBinaryin interfaceCodec<BigInteger>- Throws:
IOException
-
getBinaryEncodeType
public int getBinaryEncodeType()
- Specified by:
getBinaryEncodeTypein interfaceCodec<BigInteger>
-
-