| 8 | import java.util.*; |
| 9 | |
| 10 | @Service |
| 11 | public class BoardServiceImpl implements BoardService { |
| 12 | @Autowired |
| 13 | BoardDao boardDao; |
| 14 | |
| 15 | @Override |
| 16 | public int getCount() throws Exception { |
| 17 | return boardDao.count(); |
| 18 | } |
| 19 | |
| 20 | @Override |
| 21 | public int remove(Integer bno, String writer) throws Exception { |
| 22 | return boardDao.delete(bno, writer); |
| 23 | } |
| 24 | |
| 25 | @Override |
| 26 | public int write(BoardDto boardDto) throws Exception { |
| 27 | return boardDao.insert(boardDto); |
| 28 | } |
| 29 | |
| 30 | @Override |
| 31 | public List<BoardDto> getList() throws Exception { |
| 32 | return boardDao.selectAll(); |
| 33 | } |
| 34 | |
| 35 | @Override |
| 36 | public BoardDto read(Integer bno) throws Exception { |
| 37 | BoardDto boardDto = boardDao.select(bno); |
| 38 | boardDao.increaseViewCnt(bno); |
| 39 | |
| 40 | return boardDto; |
| 41 | } |
| 42 | |
| 43 | @Override |
| 44 | public List<BoardDto> getPage(Map map) throws Exception { |
| 45 | return boardDao.selectPage(map); |
| 46 | } |
| 47 | |
| 48 | @Override |
| 49 | public int modify(BoardDto boardDto) throws Exception { |
| 50 | return boardDao.update(boardDto); |
| 51 | } |
| 52 | |
| 53 | @Override |
| 54 | public int getSearchResultCnt(SearchCondition sc) throws Exception { |
| 55 | return boardDao.searchResultCnt(sc); |
| 56 | } |
| 57 | |
| 58 | @Override |
| 59 | public List<BoardDto> getSearchResultPage(SearchCondition sc) throws Exception { |
| 60 | return boardDao.searchSelectPage(sc); |
| 61 | } |
| 62 | } |
nothing calls this directly
no outgoing calls
no test coverage detected