类 AbstractJsonTypeHandler<T>

java.lang.Object
org.apache.ibatis.type.TypeReference<T>
org.apache.ibatis.type.BaseTypeHandler<T>
com.baomidou.mybatisplus.extension.handlers.AbstractJsonTypeHandler<T>
所有已实现的接口:
org.apache.ibatis.type.TypeHandler<T>
直接已知子类:
FastjsonTypeHandler, GsonTypeHandler, JacksonTypeHandler

public abstract class AbstractJsonTypeHandler<T>
extends org.apache.ibatis.type.BaseTypeHandler<T>
从以下版本开始:
2019-11-28
作者:
miemie
  • 构造器详细资料

    • AbstractJsonTypeHandler

      public AbstractJsonTypeHandler()
  • 方法详细资料

    • setNonNullParameter

      public void setNonNullParameter​(PreparedStatement ps, int i, T parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
      指定者:
      setNonNullParameter 在类中 org.apache.ibatis.type.BaseTypeHandler<T>
      抛出:
      SQLException
    • getNullableResult

      public T getNullableResult​(ResultSet rs, String columnName) throws SQLException
      指定者:
      getNullableResult 在类中 org.apache.ibatis.type.BaseTypeHandler<T>
      抛出:
      SQLException
    • getNullableResult

      public T getNullableResult​(ResultSet rs, int columnIndex) throws SQLException
      指定者:
      getNullableResult 在类中 org.apache.ibatis.type.BaseTypeHandler<T>
      抛出:
      SQLException
    • getNullableResult

      public T getNullableResult​(CallableStatement cs, int columnIndex) throws SQLException
      指定者:
      getNullableResult 在类中 org.apache.ibatis.type.BaseTypeHandler<T>
      抛出:
      SQLException
    • parse

      protected abstract T parse​(String json)
    • toJson

      protected abstract String toJson​(T obj)