Package edu.zzuli.common

Examples of edu.zzuli.common.MisException


  }

  public Map selectSingleMap(String sql, Map map) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      List<Map> listMap = this.paraJdbcTemplate.query(sql, map, MyColumnMapRowMapper.newInstance());
      if (listMap.size() > 0) {
        return listMap.get(0);
      } else {
        return null;
      }
    } catch (MisException e) {
      throw e;
    } catch (Exception e) {
      throw new MisException("[BaseDaoEntity.selectSingleMap]异常!", e);
    }
  }
View Full Code Here


  }

  public Map selectSingleMap(String sql, MapSqlParameterSource map) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      List<Map> listMap = this.paraJdbcTemplate.query(sql, map, MyColumnMapRowMapper.newInstance());
      if (listMap.size() > 0) {
        return listMap.get(0);
      } else {
        return null;
      }
    } catch (MisException e) {
      throw e;
    } catch (Exception e) {
      throw new MisException("[BaseDaoEntity.selectSingleMap]异常!", e);
    }
  }
View Full Code Here

  }

  public Map selectSingleMap(String sql, BeanPropertySqlParameterSource bean) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      List<Map> listMap = this.paraJdbcTemplate.query(sql, bean, MyColumnMapRowMapper.newInstance());
      if (listMap.size() > 0) {
        return listMap.get(0);
      } else {
        return null;
      }
    } catch (MisException e) {
      throw e;
    } catch (Exception e) {
      throw new MisException("[BaseDaoEntity.selectSingleMap]异常!", e);
    }
  }
View Full Code Here

  @Deprecated
  public List queryForList(String sql) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      return this.jdbcTemplate.query(sql, MyColumnMapRowMapper.newInstance());
    } catch (MisException e) {
      e.printStackTrace();
      throw e;
    } catch (Exception e) {
      e.printStackTrace();
      throw new MisException("[BaseDaoEntity.queryForList]异常!", e);
    }
  }
View Full Code Here

  }

  public List queryForList(String sql, Map map) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      if (map == null) {
        throw new MisException("查询参数为null!");
      }
      return this.paraJdbcTemplate.query(sql, map, MyColumnMapRowMapper.newInstance());
    } catch (MisException e) {
      throw e;
    } catch (Exception e) {
      throw new MisException("[BaseDaoEntity.queryForList]异常!", e);
    }
  }
View Full Code Here

  }

  public List queryForList(String sql, MapSqlParameterSource paramMap) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      if (paramMap == null) {
        throw new MisException("查询参数为null!");
      }
      return this.paraJdbcTemplate.query(sql, paramMap, MyColumnMapRowMapper.newInstance());
    } catch (MisException e) {
      throw e;
    } catch (Exception e) {
      throw new MisException("[BaseDaoEntity.queryForList]异常!", e);
    }
  }
View Full Code Here

  }

  public List queryForList(String sql, BeanPropertySqlParameterSource bean) {
    try {
      if (StringUtils.isEmpty(sql)) {
        throw new MisException("sql语句为空!");
      }
      if (bean == null) {
        throw new MisException("查询参数为null!");
      }
      return this.paraJdbcTemplate.query(sql, bean, MyColumnMapRowMapper.newInstance());
    } catch (MisException e) {
      throw e;
    } catch (Exception e) {
      throw new MisException("[BaseDaoEntity.queryForList]异常!", e);
    }
  }
View Full Code Here

TOP

Related Classes of edu.zzuli.common.MisException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.