类 AbstractJsonTypeHandler<T>

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

public abstract class AbstractJsonTypeHandler<T> extends org.apache.ibatis.type.BaseTypeHandler<T> implements com.baomidou.mybatisplus.core.handlers.IJsonTypeHandler<T>
从以下版本开始:
2019-11-28
作者:
miemie
  • 字段详细资料

    • log

      protected final org.apache.ibatis.logging.Log log
    • type

      protected final Class<?> type
    • genericType

      protected Type genericType
      从以下版本开始:
      3.5.6
  • 构造器详细资料

    • AbstractJsonTypeHandler

      public AbstractJsonTypeHandler(Class<?> type)
      默认初始化
      参数:
      type - 类型
    • AbstractJsonTypeHandler

      public AbstractJsonTypeHandler(Class<?> type, Field field)
      通过字段初始化
      参数:
      type - 类型
      field - 字段
      从以下版本开始:
      3.5.6
  • 方法详细资料

    • 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
    • getFieldType

      public Type getFieldType()