1   package org.wcb.model.manager;
2   
3   import org.wcb.model.dao.ILogbookDAO;
4   import org.wcb.model.vo.hibernate.Logbook;
5   import org.wcb.exception.ManagerException;
6   
7   import java.util.List;
8   import java.util.Collection;
9   
10  /**
11   * <small>
12   * Copyright (c)  2006  wbogaardt.
13   * Permission is granted to copy, distribute and/or modify this document
14   * under the terms of the GNU Free Documentation License, Version 1.2
15   * or any later version published by the Free Software Foundation;
16   * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
17   * Texts.  A copy of the license is included in the section entitled "GNU
18   * Free Documentation License".
19   * <p/>
20   * $File:  $ <br>
21   * $Change:  $ submitted by $Author: wbogaardt $ at $DateTime: Mar 24, 2006 12:43:50 PM $ <br>
22   * </small>
23   *
24   * @author wbogaardt
25   * @version 1
26   *          Date: Mar 24, 2006
27   *          Time: 12:43:50 PM
28   */
29  public interface ILogbookManager extends IBaseManager {
30      void setDao(ILogbookDAO oDAO);
31  
32      ILogbookDAO getDao();
33  
34      List<Logbook> findAll() throws ManagerException;
35  
36      List<Logbook> findByRegistration(String sReg) throws ManagerException;
37  
38      List<Logbook> findCrossCountry() throws ManagerException;     
39  
40      Logbook findEntry(Integer i) throws ManagerException;
41  
42      void saveEntry(Logbook entry) throws ManagerException;
43  
44      void saveOrUpdateLogbook(Collection<Logbook> logbookEntries) throws ManagerException;
45  
46      void deleteEntry(Logbook entry) throws ManagerException;
47  }