예제 #1
0
 /*
  *
  * @return
  */
 private String getNextCid() {
   String returnValue = null;
   try {
     WapCbDTO data = (WapCbDTO) sqlClient.queryForObject("NOTIFY.selectNextParamCid");
     returnValue = data.getCid();
   } catch (Exception ex) {
     logger.error("[WapCbManager]Error at getNextCid(" + ex.toString() + ")");
   }
   return returnValue;
 }
예제 #2
0
  /**
   * @param data
   * @return
   */
  public String insertCbData(WapCbDTO data) {
    String returnValue = null;
    if (data == null) // 잘못된값 검사
    return null;

    try {
      returnValue = getNextCid();
      logger.info("[WapCbManager]insertCbData:" + data.getCid());
      data.setCid(returnValue);
      sqlClient.insert("NOTIFY.insertCbData", data);
    } catch (Exception ex) {
      returnValue = null;
      logger.error("[WapCbManager]Error at insertCbData(" + ex.toString() + ")");
    }

    logger.info("[WapCbManager]" + data.getCid() + ", " + data.getParam());
    return returnValue;
  }
예제 #3
0
  /**
   * 전달 받은 값을 조회
   *
   * @param data
   * @return
   */
  public WapCbDTO getData(WapCbDTO data) {
    WapCbDTO returnData = null;

    if (data == null) // 잘못된값 검사
    return null;

    try {
      logger.info("[WapCbManager]getData::" + data.getCid());
      returnData = (WapCbDTO) sqlClient.queryForObject("NOTIFY.selectCBByCid", data);
    } catch (Exception ex) {
      logger.error("[WapCbManager]Error at getData(" + ex.toString() + ")");
    }
    return returnData;
  }