View Javadoc
1   package ejava.projects.eleague.blimpl;
2   
3   import java.util.List;
4   
5   import ejava.projects.eleague.bl.ClubMgmt;
6   import ejava.projects.eleague.bl.ClubMgmtException;
7   import ejava.projects.eleague.bo.Venue;
8   import ejava.projects.eleague.dao.ClubDAO;
9   
10  /**
11   * This class provides a simple example of the account mgmt implementation.
12   */
13  public class ClubMgmtImpl implements ClubMgmt {
14  	private ClubDAO clubDAO;
15  	
16  	public void setClubDAO(ClubDAO clubDAO) {
17  		this.clubDAO = clubDAO;;
18  	}
19  
20  	public List<Venue> getVenues(int index, int count) 
21  	    throws ClubMgmtException {
22  		
23  		if (count < 0) {
24  			throw new ClubMgmtException("count must be >= 0");
25  		}
26  		return clubDAO.getVenues(index, count);
27  	}
28  }