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.OperationVO;
28 import org.springframework.transaction.annotation.Transactional;
29
30 import java.util.List;
31
32
33
34
35
36
37
38 @Transactional
39 public interface OperationService {
40
41
42 @Transactional(readOnly = true)
43 List<OperationVO> getAllByTripId(int tripId, int offset, int size, String sortAttribute, SortDirection sortDirection);
44
45
46 @Transactional(readOnly = true)
47 OperationVO get(int id);
48
49 OperationVO save(OperationVO operation);
50
51 List<OperationVO> save(List<OperationVO> operations);
52
53 List<OperationVO> saveAllByTripId(int tripId, List<OperationVO> operations);
54
55 void delete(int id);
56
57 void delete(List<Integer> ids);
58
59 }