1 package ejava.examples.daoex.dao;
2
3 import java.util.List;
4 import javax.persistence.PersistenceException;
5 import ejava.examples.daoex.bo.Book;
6
7
8
9
10
11
12 public interface BookDAO {
13
14
15
16 Book create(Book book) throws PersistenceException;
17
18
19
20
21 Book update(Book book) throws PersistenceException;
22
23
24
25
26 Book get(long id) throws PersistenceException;
27
28
29
30
31 void remove(Book book) throws PersistenceException;
32
33
34
35
36
37 List<Book> findAll(int start, int count) throws PersistenceException;
38 }