View Javadoc

1   /**
2    * Copyright 2004-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.hr.time.timeblock.dao;
17  
18  import org.kuali.hr.time.assignment.Assignment;
19  import org.kuali.hr.time.timeblock.TimeBlock;
20  
21  import java.sql.Date;
22  import java.util.List;
23  
24  public interface TimeBlockDao {
25  
26  	public void saveOrUpdate(TimeBlock timeBlock);
27  
28  	public void saveOrUpdate(List<TimeBlock> timeBlockList);
29  
30  	public void deleteTimeBlock(TimeBlock timeBlock);
31  
32  	public TimeBlock getTimeBlock(String timeBlockId);
33  	
34  	public List<TimeBlock> getTimeBlocks(String documentId);
35  	
36  	public List<TimeBlock> getTimeBlocksForAssignment(Assignment assign);
37  	
38  	public void deleteTimeBlocksAssociatedWithDocumentId(String documentId);
39  	
40  	/*
41  	 * Get all the time blocks with the given Clock Log id as the clockLogEndId
42  	 * @param tkClockLogId
43  	 * @return List<TimeBlock>	 * 
44  	 */
45  	public List<TimeBlock> getTimeBlocksForClockLogEndId(String tkClockLogId);
46  	/*
47  	 * Get all the time blocks with the given Clock Log id as the clockLogBeginId
48  	 * @param tkClockLogId
49  	 * @return List<TimeBlock>	 * 
50  	 */
51  	public List<TimeBlock> getTimeBlocksForClockLogBeginId(String tkClockLogId);
52  	
53  	public List<TimeBlock> getLatestEndTimestampForEarnCode(String earnCode);
54  
55      List<TimeBlock> getOvernightTimeBlocks(String clockLogEndId);
56      
57      public List<TimeBlock> getTimeBlocksWithEarnCode(String earnCode, Date effDate);
58  }