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
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
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
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