class BoardDao {

    public List<Board> getBoards(){
        String sql = "select id, name, title, content, regdate, read_count     " +
                "from board order by id desc";
        try{
            RowMapper<Board> rowMapper = BeanPropertyRowMapper.newInstance(Board.class);
            return jdbc.query(sql, rowMapper);
        }catch(Exception ex){
            return null;
        }
    }

    public  BoardDao(DataSource dataSource);

}