Package org.mariadb.jdbc.plugin.codec
Class IntCodec
- java.lang.Object
-
- org.mariadb.jdbc.plugin.codec.IntCodec
-
-
Constructor Summary
Constructors Constructor Description IntCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDecode(org.mariadb.jdbc.client.Column column, Class<?> type)booleancanEncode(Object value)StringclassName()IntegerdecodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buffer, int length, org.mariadb.jdbc.client.Column column, Calendar cal)intdecodeBinaryInt(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, org.mariadb.jdbc.client.Column column)IntegerdecodeText(org.mariadb.jdbc.client.ReadableByteBuf buffer, int length, org.mariadb.jdbc.client.Column column, Calendar cal)intdecodeTextInt(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, org.mariadb.jdbc.client.Column column)voidencodeBinary(Writer encoder, Object value, Calendar cal, Long maxLength)voidencodeText(Writer encoder, org.mariadb.jdbc.client.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 IntCodec INSTANCE
-
-
Method Detail
-
canDecode
public boolean canDecode(org.mariadb.jdbc.client.Column column, Class<?> type)
-
canEncode
public boolean canEncode(Object value)
-
decodeText
public Integer decodeText(org.mariadb.jdbc.client.ReadableByteBuf buffer, int length, org.mariadb.jdbc.client.Column column, Calendar cal) throws SQLDataException
- Specified by:
decodeTextin interfaceCodec<Integer>- Throws:
SQLDataException
-
decodeTextInt
public int decodeTextInt(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, org.mariadb.jdbc.client.Column column) throws SQLDataException- Throws:
SQLDataException
-
decodeBinary
public Integer decodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buffer, int length, org.mariadb.jdbc.client.Column column, Calendar cal) throws SQLDataException
- Specified by:
decodeBinaryin interfaceCodec<Integer>- Throws:
SQLDataException
-
decodeBinaryInt
public int decodeBinaryInt(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, org.mariadb.jdbc.client.Column column) throws SQLDataException- Throws:
SQLDataException
-
encodeText
public void encodeText(Writer encoder, org.mariadb.jdbc.client.Context context, Object value, Calendar cal, Long maxLen) throws IOException
- Specified by:
encodeTextin interfaceCodec<Integer>- Throws:
IOException
-
encodeBinary
public void encodeBinary(Writer encoder, Object value, Calendar cal, Long maxLength) throws IOException
- Specified by:
encodeBinaryin interfaceCodec<Integer>- Throws:
IOException
-
getBinaryEncodeType
public int getBinaryEncodeType()
- Specified by:
getBinaryEncodeTypein interfaceCodec<Integer>
-
-