Class ClobCharacterStreamTypeHandler

java.lang.Object
org.apache.ibatis.type.TypeReference<T>
org.apache.ibatis.type.BaseTypeHandler<String>
com.flowable.platform.common.persistence.ClobCharacterStreamTypeHandler
All Implemented Interfaces:
org.apache.ibatis.type.TypeHandler<String>

@Alias("ClobCharacterStreamTypeHandler") public class ClobCharacterStreamTypeHandler extends org.apache.ibatis.type.BaseTypeHandler<String>
A TypeHandler that uses ResultSet.getCharacterStream(String) and ResultSet.getCharacterStream(int) to convert a Clob into a string. The Postgresql JDBC driver has a bug when reading from clob, and MyBatis uses Clob to read the contents.
Author:
Filip Hrisafov
See Also:
  • Field Details

    • useNclob

      protected final boolean useNclob
  • Constructor Details

    • ClobCharacterStreamTypeHandler

      public ClobCharacterStreamTypeHandler(boolean useNclob)
  • Method Details