1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.kpme.tklm.time.timeblock.dao;
17
18 import java.util.List;
19
20 import org.joda.time.DateTime;
21 import org.joda.time.LocalDate;
22 import org.kuali.kpme.core.assignment.Assignment;
23 import org.kuali.kpme.tklm.time.timeblock.TimeBlock;
24
25 public interface TimeBlockDao {
26
27 public void saveOrUpdate(TimeBlock timeBlock);
28
29 public void saveOrUpdate(List<TimeBlock> timeBlockList);
30
31 public void deleteTimeBlock(TimeBlock timeBlock);
32
33 public TimeBlock getTimeBlock(String timeBlockId);
34
35 public List<TimeBlock> getTimeBlocks(String documentId);
36
37 public List<TimeBlock> getTimeBlocksForAssignment(Assignment assign);
38
39 public void deleteTimeBlocksAssociatedWithDocumentId(String documentId);
40
41
42
43
44
45
46 public List<TimeBlock> getTimeBlocksForClockLogEndId(String tkClockLogId);
47
48
49
50
51
52 public List<TimeBlock> getTimeBlocksForClockLogBeginId(String tkClockLogId);
53
54 public List<TimeBlock> getLatestEndTimestampForEarnCode(String earnCode);
55
56 List<TimeBlock> getOvernightTimeBlocks(String clockLogEndId);
57
58 public List<TimeBlock> getTimeBlocksWithEarnCode(String earnCode, DateTime effDate);
59
60 public List<TimeBlock> getTimeBlocksForLookup(String documentId,
61 String principalId, String userPrincipalId, LocalDate fromDate,
62 LocalDate toDate);
63 }