Ejemplo n.º 1
0
  public void reply_insert(BoardDTO dto) {
    logger.info("\nBoardDAO class reply_insert(BoardDTO)");
    logger.info("BoardDAO replyname = " + dto.getReply_name());
    logger.info("BoardDAO replycontent =" + dto.getReply_content());
    logger.info("BoardDAO hobby_no =" + dto.getHobby_no());

    sqlSession.insert("reply_add", dto);
  } // end reply_insert
Ejemplo n.º 2
0
  public List<BoardDTO> dbSelect(int start, int end, String skey, String sval) {
    logger.info("\nBoardDAO class List<BoardDTO> dbSelect()");

    dto.setStart(start);
    dto.setEnd(end);
    dto.setSkey(skey);
    dto.setSval(sval);
    return sqlSession.selectList("selectAll", dto);
  } // end dbSelect
Ejemplo n.º 3
0
 public void dbInsert(BoardDTO dto) {
   logger.info("\nBoardDAO class dbInsert(BoardDTO)");
   logger.info("BoardDAO name = " + dto.getName());
   logger.info("BoardDAO title =" + dto.getTitle());
   logger.info("BoardDAO content =" + dto.getContent());
   logger.info("BoardDAO gender =" + dto.getGender());
   logger.info("BoardDAO hobby =" + dto.getHobby());
   logger.info("BoardDAO filename=" + dto.getImg_file_name());
   sqlSession.insert("add", dto);
 } // end dbInsert
Ejemplo n.º 4
0
 public int dbCount(String skey, String sval) {
   logger.info("BoardDAO class BoardDTO dbCount(skey, sval)");
   dto.setSkey(skey);
   dto.setSval(sval);
   return sqlSession.selectOne("count", dto);
 } // end dbCount