package dk.hansen; import java.util.Collection; /* * This is a Data Access Object (DAO) */ public interface BookManagerIF { public void createBook(String id, String title, String author, int year) throws DAOException; public void updateBook(String id, String title, String author, int year) throws DAOException; public void deleteBook(String id) throws DAOException; public Book getBook(String id) throws DAOException; public Collection getAll() throws DAOException; public Collection findBookTitle(String title) throws DAOException; public Collection findBookAuthor(String author) throws DAOException; public Collection findBookYear(int year) throws DAOException; }