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 BigIntegerCodec
INSTANCE
-
Constructor Summary
Constructors Constructor Description BigIntegerCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canDecode(ColumnDefinitionPacket column, Class<?> type)
boolean
canEncode(Object value)
String
className()
BigInteger
decodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal)
BigInteger
decodeText(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal)
void
encodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength)
void
encodeText(PacketWriter encoder, Context context, Object value, Calendar cal, Long length)
int
getBinaryEncodeType()
-
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:
className
in interfaceCodec<BigInteger>
-
canDecode
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
- Specified by:
canDecode
in interfaceCodec<BigInteger>
-
canEncode
public boolean canEncode(Object value)
- Specified by:
canEncode
in interfaceCodec<BigInteger>
-
decodeText
public BigInteger decodeText(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeText
in interfaceCodec<BigInteger>
- Throws:
SQLDataException
-
decodeBinary
public BigInteger decodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, ColumnDefinitionPacket column, Calendar cal) throws SQLDataException
- Specified by:
decodeBinary
in interfaceCodec<BigInteger>
- Throws:
SQLDataException
-
encodeText
public void encodeText(PacketWriter encoder, Context context, Object value, Calendar cal, Long length) throws IOException
- Specified by:
encodeText
in interfaceCodec<BigInteger>
- Throws:
IOException
-
encodeBinary
public void encodeBinary(PacketWriter encoder, Object value, Calendar cal, Long maxLength) throws IOException
- Specified by:
encodeBinary
in interfaceCodec<BigInteger>
- Throws:
IOException
-
getBinaryEncodeType
public int getBinaryEncodeType()
- Specified by:
getBinaryEncodeType
in interfaceCodec<BigInteger>
-
-