001 /*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.kfs.module.ld.dataaccess;
017
018 import java.util.Collection;
019 import java.util.Iterator;
020 import java.util.Map;
021
022 import org.kuali.kfs.module.ld.businessobject.July1PositionFunding;
023 import org.kuali.rice.kns.bo.BusinessObject;
024
025 /**
026 * This class is an interface to data access objects for general labor related inquiries. It will be deprecated after the data
027 * access methods here are put down to business object level.
028 */
029 public interface LaborDao {
030
031 /**
032 * This method returns an encumberence total for a given selection criteria
033 *
034 * @param fieldValues
035 * @return
036 */
037 Object getEncumbranceTotal(Map fieldValues);
038
039 /**
040 * This method returns current funds data
041 *
042 * @param fieldValues
043 * @param isConsolidated
044 * @return Collection
045 */
046 Iterator getCurrentFunds(Map fieldValues, boolean isConsolidated);
047
048 /**
049 * This method returns current July1 Position Funding data
050 *
051 * @param fieldValues
052 * @return Collection
053 */
054 Collection<July1PositionFunding> getJuly1PositionFunding(Map<String, String> fieldValues);
055
056 Collection getJuly1(Map fieldValues);
057
058 /**
059 * Stores a business object without doing a update query.
060 *
061 * @param businessObject - Business Object to Store.
062 */
063 public void insert(BusinessObject businessObject);
064 }