1 /*
2 * Copyright 2005-2006 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.ole.sys.dataaccess;
17
18 import java.sql.Date;
19 import java.util.Collection;
20
21 import org.kuali.ole.sys.businessobject.UniversityDate;
22
23 /**
24 * An DAO interface declaring methods needed by UniversityDates to interact with the database
25 */
26 public interface UniversityDateDao {
27
28 /**
29 * Returns the last university date for a given fiscal year
30 *
31 * @param fiscalYear the fiscal year to find the last date for
32 * @return a UniversityDate record for the last day in the given fiscal year, or null if nothing can be found
33 */
34 public UniversityDate getLastFiscalYearDate(Integer fiscalYear);
35
36 /**
37 * Returns the first university date for a given fiscal year
38 *
39 * @param fiscalYear the fiscal year to find the first date for
40 * @return a UniversityDate record for the first day of the given fiscal year, or null if nothing can be found
41 */
42 public UniversityDate getFirstFiscalYearDate(Integer fiscalYear);
43 }