if (Types.BIT == type) { ps.setBoolean(index, ((Boolean) obj).booleanValue());
if (Boolean.TRUE.equals(obj)) { ps.setString(index, "1");
    public void bind(PreparedStatement ps, int index, Object obj, int type)	throws SQLException {        if (Types.BIT == type) {            ps.setBoolean(index, ((Boolean) obj).booleanValue());        } else {            if (Boolean.TRUE.equals(obj)) {                ps.setString(index, "1");            } else {                ps.setString(index, "0");            }        }    }