트랜젝션 썸네일형 리스트형 트랜젝션 처리. //Dao public int BoardDelete(String boardNum,Connection conn) throws Exception{ Statement stmt = null; int cnt = 0; try{ conn = DBConnections.getConnection(); stmt = conn.createStatement(); cnt = stmt.executeUpdate(getQueryMethod(Integer.parseInt(boardNum))); } catch(Exception e){ e.printStackTrace(); throw e; } finally{ close.release(stmt, null); //connection 부분은 열어둠. } return cnt; } //서비스 publ.. 더보기 이전 1 다음