Package org.mariadb.jdbc.plugin.codec
Class ClobCodec
- java.lang.Object
-
- org.mariadb.jdbc.plugin.codec.ClobCodec
-
-
Constructor Summary
Constructors Constructor Description ClobCodec()
-
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)booleancanEncodeLongData()StringclassName()ClobdecodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, org.mariadb.jdbc.client.Column column, Calendar cal)ClobdecodeText(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, org.mariadb.jdbc.client.Column column, Calendar cal)voidencodeBinary(Writer encoder, Object value, Calendar cal, Long maxLength)byte[]encodeData(Clob value, Long maxLength)voidencodeLongData(Writer encoder, Clob value, Long maxLength)voidencodeText(Writer encoder, org.mariadb.jdbc.client.Context context, Object value, Calendar cal, Long maxLength)intgetBinaryEncodeType()
-
-
-
Field Detail
-
INSTANCE
public static final ClobCodec INSTANCE
-
-
Method Detail
-
canDecode
public boolean canDecode(org.mariadb.jdbc.client.Column column, Class<?> type)
-
decodeText
public Clob decodeText(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, org.mariadb.jdbc.client.Column column, Calendar cal) throws SQLDataException
- Specified by:
decodeTextin interfaceCodec<Clob>- Throws:
SQLDataException
-
decodeBinary
public Clob decodeBinary(org.mariadb.jdbc.client.ReadableByteBuf buf, int length, org.mariadb.jdbc.client.Column column, Calendar cal) throws SQLDataException
- Specified by:
decodeBinaryin interfaceCodec<Clob>- Throws:
SQLDataException
-
encodeText
public void encodeText(Writer encoder, org.mariadb.jdbc.client.Context context, Object value, Calendar cal, Long maxLength) throws IOException, SQLException
- Specified by:
encodeTextin interfaceCodec<Clob>- Throws:
IOExceptionSQLException
-
encodeBinary
public void encodeBinary(Writer encoder, Object value, Calendar cal, Long maxLength) throws IOException, SQLException
- Specified by:
encodeBinaryin interfaceCodec<Clob>- Throws:
IOExceptionSQLException
-
encodeLongData
public void encodeLongData(Writer encoder, Clob value, Long maxLength) throws IOException, SQLException
- Specified by:
encodeLongDatain interfaceCodec<Clob>- Throws:
IOExceptionSQLException
-
encodeData
public byte[] encodeData(Clob value, Long maxLength) throws IOException, SQLException
- Specified by:
encodeDatain interfaceCodec<Clob>- Throws:
IOExceptionSQLException
-
canEncodeLongData
public boolean canEncodeLongData()
- Specified by:
canEncodeLongDatain interfaceCodec<Clob>
-
getBinaryEncodeType
public int getBinaryEncodeType()
- Specified by:
getBinaryEncodeTypein interfaceCodec<Clob>
-
-