1 package net.sumaris.core.service.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
26 import net.sumaris.core.dao.technical.SortDirection;
27 import net.sumaris.core.vo.data.SaleVO;
28 import net.sumaris.core.vo.data.TripVO;
29 import net.sumaris.core.vo.filter.TripFilterVO;
30 import org.springframework.transaction.annotation.Transactional;
31
32 import java.util.List;
33
34
35
36
37
38
39
40 @Transactional
41 public interface SaleService {
42
43
44 @Transactional(readOnly = true)
45 List<SaleVO> getAllByTripId(int tripId);
46
47 @Transactional(readOnly = true)
48 SaleVO get(int id);
49
50 List<SaleVO> saveAllByTripId(int tripId, List<SaleVO> sources);
51
52 SaleVO save(SaleVO sale);
53
54 List<SaleVO> save(List<SaleVO> sales);
55
56 void delete(int id);
57
58 void delete(List<Integer> ids);
59
60 }