package dk.hansen; import java.util.Collection; /* * This is a Data Access Object (DAO) */ public interface CDManagerIF { public void createCD(String id, String title, String author, int year) throws DAOException; public void updateCD(String id, String title, String author, int year) throws DAOException; public void deleteCD(String id) throws DAOException; public CD getCD(String id) throws DAOException; public Collection getAll() throws DAOException; public Collection findCDTitle(String title) throws DAOException; public Collection findCDAuthor(String author) throws DAOException; public Collection findCDYear(int year) throws DAOException; }