Exemple #1
0
  public NoticeVO getTitleInfo(int no) throws Exception {

    SqlMapClient sqlmap = IbatisUtil.getSqlmap();
    NoticeVO notice = (NoticeVO) sqlmap.queryForObject("getTitleInfo", no);

    return notice;
  }
Exemple #2
0
  public List<NoticeVO> getNoticeRange(HashMap<String, Object> range) throws Exception {

    SqlMapClient sqlmap = IbatisUtil.getSqlmap();
    List<NoticeVO> list = sqlmap.queryForList("getNoticeRange", range);

    return list;
  }
Exemple #3
0
  public int getTotalRow(int no) throws Exception {

    SqlMapClient sqlmap = IbatisUtil.getSqlmap();
    int totalRow = (Integer) sqlmap.queryForObject("getTotalRow", no);

    return totalRow;
  }
Exemple #4
0
  public String coachCheck(int memNo) throws Exception {

    SqlMapClient sqlmap = IbatisUtil.getSqlmap();
    String check = (String) sqlmap.queryForObject("coachCheck", memNo);
    return check;
  }
Exemple #5
0
  public void updateNotice(HashMap<String, Object> update) throws Exception {

    SqlMapClient sqlmap = IbatisUtil.getSqlmap();
    sqlmap.update("updateNotice", update);
  }
Exemple #6
0
  public void deleteNotice(int no) throws Exception {

    SqlMapClient sqlmap = IbatisUtil.getSqlmap();
    sqlmap.delete("deleteNotice", no);
  }
Exemple #7
0
  public void getHate(int no) throws Exception {

    SqlMapClient sqlmap = IbatisUtil.getSqlmap();
    sqlmap.update("getHate", no);
  }
Exemple #8
0
  public void addNewNotice(NoticeVO notice) throws SQLException {

    SqlMapClient sqlmap = IbatisUtil.getSqlmap();
    sqlmap.insert("addNewNotice", notice);
  }