1 package ejava.projects.edmv.dao;
2
3 import java.util.List;
4
5 import ejava.projects.edmv.bo.Person;
6
7 /**
8 * This interface provides a _sparse_ example of the methods offered by a
9 * DAO supplying O/R mapping to the DB.
10 *
11 */
12 public interface PersonDAO {
13 void createPerson(Person person)
14 throws DAOException;
15 Person getPerson(long id)
16 throws DAOException;
17 List<Person> getPeople(int index, int count)
18 throws DAOException;
19 }