Package com.iisigroup.cap.exception

Examples of com.iisigroup.cap.exception.CapDBException


    }
    long cur = System.currentTimeMillis();
    try {
      super.query(sql.toString(), args, rch);
    } catch (Exception e) {
      throw new CapDBException(e, causeClass);
    } finally {
      logger.info("CapNamedJdbcTemplate spend {} ms",
          (System.currentTimeMillis() - cur));
    }
  }// ;
View Full Code Here


    try {
      return super.query(sql.toString(), (Map<String, Object>) args,
          new CapRowMapperResultSetExtractor<T>(rm, startRow,
              fetchSize));
    } catch (Exception e) {
      throw new CapDBException(e, causeClass);
    } finally {
      logger.info("CapNamedJdbcTemplate spend {} ms",
          (System.currentTimeMillis() - cur));
    }
  }// ;
View Full Code Here

    long cur = System.currentTimeMillis();
    try {
      return super.query(sql.toString(), (Map<String, ?>) args,
          new RowMapperResultSetExtractor<T>(rm));
    } catch (Exception e) {
      throw new CapDBException(e, causeClass);
    } finally {
      logger.info("CapNamedJdbcTemplate spend {} ms",
          (System.currentTimeMillis() - cur));
    }
  }// ;
View Full Code Here

    }
    long cur = System.currentTimeMillis();
    try {
      return super.queryForInt(sql.toString(), (Map) args);
    } catch (Exception e) {
      throw new CapDBException(e, causeClass);
    } finally {
      logger.info("CapNamedJdbcTemplate spend {} ms",
          (System.currentTimeMillis() - cur));
    }
  }// ;
View Full Code Here

    }
    long cur = System.currentTimeMillis();
    try {
      return super.update(sql, (Map) args);
    } catch (Exception e) {
      throw new CapDBException(e, causeClass);
    } finally {
      logger.info("CapNamedJdbcTemplate spend {} ms",
          (System.currentTimeMillis() - cur));
    }
  }// ;
View Full Code Here

        if (cause instanceof BatchUpdateException) {
          cause = ((BatchUpdateException) cause).getNextException();
        }
        msg = cause.getMessage();
      }
      throw new CapDBException(msg, e, causeClass);
    } finally {
      logger.info("CapNamedJdbcTemplate spend {} ms",
          (System.currentTimeMillis() - cur));
    }
  }// ;
View Full Code Here

    }
    long cur = System.currentTimeMillis();
    try {
      return super.queryForRowSet(sql.toString(), args);
    } catch (Exception e) {
      throw new CapDBException(e, causeClass);
    } finally {
      logger.info("CapNamedJdbcTemplate spend {} ms",
          (System.currentTimeMillis() - cur));
    }
  }// ;
View Full Code Here

    }
    long cur = System.currentTimeMillis();
    try {
      return super.queryForList(sql.toString(), args);
    } catch (Exception e) {
      throw new CapDBException(e, causeClass);
    } finally {
      logger.info("CapNamedJdbcTemplate spend {} ms",
          (System.currentTimeMillis() - cur));
    }
  }// ;
View Full Code Here

    long cur = System.currentTimeMillis();
    try {
      return new Page<Map<String, Object>>(list, super.queryForInt(
          sql.toString(), args), fetchSize, startRow);
    } catch (Exception e) {
      throw new CapDBException(e, causeClass);
    } finally {
      logger.info("CapNamedJdbcTemplate spend {} ms",
          (System.currentTimeMillis() - cur));
    }
  }// ;
View Full Code Here

      List<Map<String, Object>> list = super.queryForList(
          sql.toString(), provider.getParams());
      return new Page<Map<String, Object>>(list, totalRows,
          search.getMaxResults(), search.getFirstResult());
    } catch (Exception e) {
      throw new CapDBException(e, causeClass);
    } finally {
      logger.info("CapNamedJdbcTemplate spend {} ms",
          (System.currentTimeMillis() - cur));
    }
  }// ;
View Full Code Here

TOP

Related Classes of com.iisigroup.cap.exception.CapDBException

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.