1 /* 2 * Copyright 2007 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.module.purap.document.dataaccess; 17 18 import org.kuali.ole.module.purap.businessobject.NegativeInvoiceApprovalLimit; 19 import org.kuali.rice.core.api.util.type.KualiDecimal; 20 21 import java.util.Collection; 22 23 /** 24 * Negative Payment Request Approval Limit DAO Interface. 25 */ 26 public interface NegativeInvoiceApprovalLimitDao { 27 28 /** 29 * Find limits by chart. 30 * 31 * @param chartCode - chart of accounts code 32 * @return - collection of negative payment request approval limits 33 */ 34 public Collection<NegativeInvoiceApprovalLimit> findByChart(String chartCode); 35 36 /** 37 * Find limits by chart and account. 38 * 39 * @param chartCode - chart of accounts code 40 * @param accountNumber 41 * @return - collection of negative payment request approval limits 42 */ 43 public Collection<NegativeInvoiceApprovalLimit> findByChartAndAccount(String chartCode, String accountNumber); 44 45 /** 46 * Find limits by chart and organization. 47 * 48 * @param chartCode - chart of accounts code 49 * @param organizationCode - organization code 50 * @return - collection of negative payment request approval limits 51 */ 52 public Collection<NegativeInvoiceApprovalLimit> findByChartAndOrganization(String chartCode, String organizationCode); 53 54 /** 55 * Retrieve a collection of NegativeInvoiceApprovalLimit where the NegativeInvoiceApprovalLimitAmount is greater 56 * than the limit passed in. (Used for Testing.) 57 * 58 * @param limit - lower limit 59 * @return - collection of negative payment request approval limits 60 */ 61 public Collection<NegativeInvoiceApprovalLimit> findAboveLimit(KualiDecimal limit); 62 63 /** 64 * Retrieve a collection of NegativeInvoiceApprovalLimit where the NegativeInvoiceApprovalLimitAmount is less than 65 * the limit passed in. (Used for Testing.) 66 * 67 * @param limit - upper limit 68 * @return - collection of negative payment request approval limits 69 */ 70 public Collection<NegativeInvoiceApprovalLimit> findBelowLimit(KualiDecimal limit); 71 72 }