1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.assignment.dao;
17
18 import org.kuali.hr.time.assignment.Assignment;
19
20 import java.sql.Date;
21 import java.util.List;
22
23 public interface AssignmentDao {
24
25
26
27
28
29
30
31
32
33 public List<Assignment> findAssignments(String principalId, Date asOfDate);
34
35
36
37
38 public void saveOrUpdate(Assignment assignment);
39
40
41
42
43 public void saveOrUpdate(List<Assignment> assignments);
44
45
46
47
48
49 public void delete(Assignment assignment);
50
51
52
53
54
55
56
57 public List<Assignment> getActiveAssignmentsInWorkArea(Long workArea, Date asOfDate);
58
59 public Assignment getAssignment(String tkAssignmentId);
60
61 public Assignment getAssignment(Long job, Long workArea, Long task, Date asOfDate);
62
63 public List<Assignment> getActiveAssignments(Date asOfDate);
64
65 public Assignment getAssignment(String principalId, Long jobNumber, Long workArea, Long task, Date asOfDate);
66
67
68
69
70
71
72
73
74
75 public List<Assignment> getActiveAssignmentsForJob(String principalId, Long jobNumber, Date asOfDate);
76
77 List<Assignment> findAssignmentsWithinPeriod(String principalId, Date startDate, Date endDate);
78
79 List<Assignment> searchAssignments(Date fromEffdt, Date toEffdt, String principalId, String jobNumber,
80 String dept, String workArea, String active, String showHistory);
81
82 public Assignment getMaxTimestampAssignment(String principalId);
83 }