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
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 }