1 package net.sumaris.core.dao.data;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 import net.sumaris.core.dao.technical.SortDirection;
26 import net.sumaris.core.vo.data.VesselFeaturesVO;
27 import net.sumaris.core.vo.data.VesselRegistrationVO;
28 import net.sumaris.core.vo.data.VesselVO;
29 import net.sumaris.core.vo.filter.VesselFilterVO;
30
31 import java.util.List;
32
33 public interface VesselDao {
34
35 VesselVO get(int id);
36
37 List<VesselVO> findByFilter(VesselFilterVO filter, int offset, int size, String sortAttribute, SortDirection sortDirection);
38
39 Long countByFilter(VesselFilterVO filter);
40
41 List<VesselFeaturesVO> getFeaturesByVesselId(int vesselId, int offset, int size, String sortAttribute, SortDirection sortDirection);
42
43 List<VesselRegistrationVO> getRegistrationsByVesselId(int vesselId, int offset, int size, String sortAttribute, SortDirection sortDirection);
44
45 VesselVOf="../../../../../net/sumaris/core/vo/data/VesselVO.html#VesselVO">VesselVO save(VesselVO vessel, boolean checkUpdateDate);
46
47 void delete(int id);
48
49 }