Package org.mariadb.r2dbc.codec.list
Class BigIntegerCodec
- java.lang.Object
-
- org.mariadb.r2dbc.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(Class<?> value)BigIntegerdecodeBinary(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends BigInteger> type, ExceptionFactory factory)BigIntegerdecodeText(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends BigInteger> type, ExceptionFactory factory)voidencodeDirectBinary(io.netty.buffer.ByteBufAllocator allocator, io.netty.buffer.ByteBuf out, Object value, Context context)voidencodeDirectText(io.netty.buffer.ByteBuf out, Object value, Context context)DataTypegetBinaryEncodeType()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mariadb.r2dbc.codec.Codec
encodeBinary, encodeText, isDirect
-
-
-
-
Field Detail
-
INSTANCE
public static BigIntegerCodec INSTANCE
-
-
Method Detail
-
canDecode
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
- Specified by:
canDecodein interfaceCodec<BigInteger>
-
canEncode
public boolean canEncode(Class<?> value)
- Specified by:
canEncodein interfaceCodec<BigInteger>
-
decodeText
public BigInteger decodeText(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends BigInteger> type, ExceptionFactory factory)
- Specified by:
decodeTextin interfaceCodec<BigInteger>
-
decodeBinary
public BigInteger decodeBinary(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends BigInteger> type, ExceptionFactory factory)
- Specified by:
decodeBinaryin interfaceCodec<BigInteger>
-
encodeDirectText
public void encodeDirectText(io.netty.buffer.ByteBuf out, Object value, Context context)- Specified by:
encodeDirectTextin interfaceCodec<BigInteger>
-
encodeDirectBinary
public void encodeDirectBinary(io.netty.buffer.ByteBufAllocator allocator, io.netty.buffer.ByteBuf out, Object value, Context context)- Specified by:
encodeDirectBinaryin interfaceCodec<BigInteger>
-
getBinaryEncodeType
public DataType getBinaryEncodeType()
- Specified by:
getBinaryEncodeTypein interfaceCodec<BigInteger>
-
-