1 package org.wcb.model.service;
2
3 import org.wcb.model.vo.hibernate.Logbook;
4 import org.wcb.model.vo.hibernate.AircraftTypeBO;
5 import org.wcb.model.vo.hibernate.AircraftBO;
6 import org.wcb.model.vo.hibernate.AirportBO;
7 import org.wcb.exception.ServiceException;
8
9 import java.util.List;
10 import java.util.Collection;
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 public interface ILogbookService {
32
33 Logbook findLogBookEntry(Integer pkId) throws ServiceException;
34
35 void saveLogBookEntry(Logbook oEntry) throws ServiceException;
36
37 void saveLogBookEntry(Collection<Logbook> oSaveEntries) throws ServiceException;
38
39 void deleteLogBookEntry(Logbook oEntry) throws ServiceException;
40
41 List<Logbook> getAllLogbookEntries() throws ServiceException;
42
43 List<Logbook> findByRegistration(String reg) throws ServiceException;
44
45 AircraftBO getAircraftByRegistration(String regid) throws ServiceException;
46
47 void saveAircraft(AircraftBO craft) throws ServiceException;
48
49 void deleteAircraft(AircraftBO craft) throws ServiceException;
50
51 List<AircraftTypeBO> findAllAircraftType() throws ServiceException;
52
53 void saveAircraftType(AircraftTypeBO type) throws ServiceException;
54
55 AircraftTypeBO getAircraftTypeById(Integer id) throws ServiceException;
56
57 List<AircraftBO> findAllAircraft() throws ServiceException;
58
59 List<AirportBO> findAllAirport() throws ServiceException;
60
61 AirportBO findByAirportFaa(String faaCode) throws ServiceException;
62
63 void saveAirport(AirportBO oSave) throws ServiceException;
64
65 void saveAirports(Collection<AirportBO> oSave) throws ServiceException;
66
67 void deleteAirport(AirportBO oAirport) throws ServiceException;
68 }