Exemplo n.º 1
0
  public static void getBoardVoTest() {
    BoardDao dao = new BoardDao();
    BoardVo boardVo = null;
    boardVo = dao.getVo(6L);

    System.out.println(boardVo);
  }
Exemplo n.º 2
0
 public static void getListTest() {
   BoardDao dao = new BoardDao();
   List<BoardVo> list = dao.getList();
   for (BoardVo vo : list) {
     System.out.println(vo);
   }
 }
Exemplo n.º 3
0
 public static void getWTFListTest() {
   BoardDao boardDao = new BoardDao();
   List<BoardVo> list = boardDao.getListForViewListPageIDontKnowWhatToNameTheMethod();
   for (BoardVo vo : list) {
     System.out.println("! : " + vo.toString());
   }
 }
Exemplo n.º 4
0
 public static void updateTest() {
   BoardVo vo = new BoardVo();
   vo.setTitle("up Title");
   vo.setContent("up Content");
   vo.setViewCnt(1L);
   BoardDao dao = new BoardDao();
   dao.update(2L, vo);
 }
Exemplo n.º 5
0
  public static void insertTest() {
    BoardDao dao = new BoardDao();
    BoardVo vo = new BoardVo();

    vo.setTitle("TITLE!");
    vo.setContent("CONTENT!");
    vo.setMemberNo(Long.parseLong("2"));
    vo.setMemberName("MEMBER_NAME!");

    dao.insert(vo);
  }
Exemplo n.º 6
0
 public static void deleteTest() {
   BoardDao dao = new BoardDao();
   dao.delete(16L);
 }