1 package ejava.projects.eleague.dao;
2
3 import java.util.List;
4
5 import ejava.projects.eleague.bo.Venue;
6
7 /**
8 * This interface defines the data access methods defined for the Club
9 * portion of the League.
10 */
11 public interface ClubDAO {
12 /**
13 * This method will create a new venue in the DB and update the provided
14 * object with the PK of that entity.
15 * @param venue
16 * @throws ClubDAOException
17 */
18 void createVenue(Venue venue)
19 throws ClubDAOException;
20
21 /**
22 * This method will return all venues in the DB between the start
23 * and count values. Provide 0s to turn off paging.
24 * @param start
25 * @param count
26 * @throws ClubDAOException
27 */
28 List<Venue> getVenues(int start, int count)
29 throws ClubDAOException;
30 }