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.accrual.dao;
17  
18  import org.kuali.hr.time.accrual.TimeOffAccrual;
19  
20  import java.sql.Date;
21  import java.util.List;
22  
23  public interface TimeOffAccrualDao {
24  	/**
25  	 * Get Time off accruals by principal id
26  	 * @param principalId
27  	 * @return
28  	 */
29  	public List<TimeOffAccrual> getTimeOffAccruals(String principalId);
30  	/**
31  	 * Get time off accrual by unique id
32  	 * @param laTimeOffAccrualId
33  	 * @return
34  	 */
35  	public TimeOffAccrual getTimeOffAccrual(Long laTimeOffAccrualId);
36  	
37  	/**
38  	 * Get active accrual categories
39  	 * @param principalId
40  	 * @param asOfDate
41  	 * @return
42  	 */
43  	public List<TimeOffAccrual> getActiveTimeOffAccruals (String principalId, Date asOfDate) ;
44  	
45  	public int getTimeOffAccrualCount(String accrualCategory, Date effectiveDate, String principalId, String lmAccrualId);
46  
47      List<TimeOffAccrual> getTimeOffAccruals(String principalId, String accrualCategory);
48  }