1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.earncode.service;
17
18 import org.kuali.hr.time.assignment.Assignment;
19 import org.kuali.hr.time.earncode.EarnCode;
20 import org.springframework.cache.annotation.Cacheable;
21
22 import java.math.BigDecimal;
23 import java.sql.Date;
24 import java.util.List;
25 import java.util.Map;
26
27 public interface EarnCodeService {
28
29
30
31
32
33
34 @Cacheable(value=EarnCode.CACHE_NAME, key="'a=' + #p0.getTkAssignmentId() + '|' + 'asOfDate=' + #p1")
35 public List<EarnCode> getEarnCodes(Assignment a, Date asOfDate);
36
37
38
39
40
41
42
43 @Cacheable(value=EarnCode.CACHE_NAME, key="'a=' + #p0.getTkAssignmentId() + '|' + 'asOfDate=' + #p1 + '|' + 'earnTypeCode=' + #p2")
44 public List<EarnCode> getEarnCodes(Assignment a, Date asOfDate, String earnTypeCode);
45
46
47
48
49
50
51
52 @Cacheable(value=EarnCode.CACHE_NAME, key="'earnCode=' + #p0 + '|' + 'asOfDate=' + #p1")
53 public EarnCode getEarnCode(String earnCode, Date asOfDate);
54
55
56
57
58
59
60
61 @Cacheable(value=EarnCode.CACHE_NAME, key="'{getEarnCodeType}' + 'earnCode=' + #p0 + '|' + 'asOfDate=' + #p1")
62 String getEarnCodeType(String earnCode, Date asOfDate);
63
64
65
66
67
68
69 @Cacheable(value=EarnCode.CACHE_NAME, key="'earnCodeId=' + #p0")
70 public EarnCode getEarnCodeById(String earnCodeId);
71
72
73
74
75
76
77 @Cacheable(value=EarnCode.CACHE_NAME, key="'{getOvertimeEarnCodes}' + 'asOfDate=' + #p0")
78 public List<EarnCode> getOvertimeEarnCodes(Date asOfDate);
79
80
81
82
83
84
85
86 @Cacheable(value=EarnCode.CACHE_NAME, key="'{getOvertimeEarnCodesStrs}' + 'asOfDate=' + #p0")
87 public List<String> getOvertimeEarnCodesStrs(Date asOfDate);
88
89
90 @Cacheable(value= EarnCode.CACHE_NAME, key="'a=' + #p0.getTkAssignmentId() + '|' + 'asOfDate=' + #p1")
91 public List<EarnCode> getEarnCodesForTime(Assignment a, Date asOfDate);
92
93
94
95
96
97
98 public int getEarnCodeCount(String earnCode);
99
100
101
102
103
104
105
106 public int getNewerEarnCodeCount(String earnCode, Date effdt);
107
108 List<EarnCode> getEarnCodes(String earnCode, String ovtEarnCode, String descr, Date fromEffdt, Date toEffdt, String active, String showHist);
109 }