类 BooleanTypeHandler

java.lang.Object
org.apache.ibatis.type.TypeReference<T>
org.apache.ibatis.type.BaseTypeHandler<Boolean>
org.elsfs.tool.sql.mybatisplus.type.BooleanTypeHandler
所有已实现的接口:
org.apache.ibatis.type.TypeHandler<Boolean>

public class BooleanTypeHandler extends org.apache.ibatis.type.BaseTypeHandler<Boolean>
布尔值处理器
从以下版本开始:
0.0.4
作者:
zeng
  • 构造器详细资料

    • BooleanTypeHandler

      public BooleanTypeHandler()
  • 方法详细资料

    • setNonNullParameter

      public void setNonNullParameter(PreparedStatement ps, int i, Boolean parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
      设置参数
      指定者:
      setNonNullParameter 在类中 org.apache.ibatis.type.BaseTypeHandler<Boolean>
      参数:
      ps - 预处理语句
      i - 参数下标
      parameter - 参数值
      jdbcType - 类型
      抛出:
      SQLException - 异常
    • getNullableResult

      public Boolean getNullableResult(ResultSet rs, String columnName) throws SQLException
      Gets the nullable result.
      指定者:
      getNullableResult 在类中 org.apache.ibatis.type.BaseTypeHandler<Boolean>
      参数:
      rs - the rs
      columnName - Column name, when configuration useColumnLabel is false
      返回:
      the nullable result
      抛出:
      SQLException - the SQL exception
    • getNullableResult

      public Boolean getNullableResult(ResultSet rs, int columnIndex) throws SQLException
      获取可空结果
      指定者:
      getNullableResult 在类中 org.apache.ibatis.type.BaseTypeHandler<Boolean>
      参数:
      rs - 结果集
      columnIndex - 列下标
      返回:
      结果
      抛出:
      SQLException - 异常
    • getNullableResult

      public Boolean getNullableResult(CallableStatement cs, int columnIndex) throws SQLException
      获取可空结果
      指定者:
      getNullableResult 在类中 org.apache.ibatis.type.BaseTypeHandler<Boolean>
      参数:
      cs - 调用过程
      columnIndex - 列下标
      返回:
      结果
      抛出:
      SQLException - 异常