01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.purap.dao;
17:
18: import java.util.Collection;
19:
20: import org.kuali.core.util.KualiDecimal;
21: import org.kuali.module.purap.bo.NegativePaymentRequestApprovalLimit;
22:
23: /**
24: * Negative Payment Request Approval Limit DAO Interface.
25: */
26: public interface NegativePaymentRequestApprovalLimitDao {
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<NegativePaymentRequestApprovalLimit> findByChart(
35: String chartCode);
36:
37: /**
38: * Find limits by chart and account.
39: *
40: * @param chartCode - chart of accounts code
41: * @param accountNumber
42: * @return - collection of negative payment request approval limits
43: */
44: public Collection<NegativePaymentRequestApprovalLimit> findByChartAndAccount(
45: String chartCode, String accountNumber);
46:
47: /**
48: * Find limits by chart and organization.
49: *
50: * @param chartCode - chart of accounts code
51: * @param organizationCode - organization code
52: * @return - collection of negative payment request approval limits
53: */
54: public Collection<NegativePaymentRequestApprovalLimit> findByChartAndOrganization(
55: String chartCode, String organizationCode);
56:
57: /**
58: * Retrieve a collection of NegativePaymentRequestApprovalLimit where the NegativePaymentRequestApprovalLimitAmount is greater
59: * than the limit passed in. (Used for Testing.)
60: *
61: * @param limit - lower limit
62: * @return - collection of negative payment request approval limits
63: */
64: public Collection<NegativePaymentRequestApprovalLimit> findAboveLimit(
65: KualiDecimal limit);
66:
67: /**
68: * Retrieve a collection of NegativePaymentRequestApprovalLimit where the NegativePaymentRequestApprovalLimitAmount is less than
69: * the limit passed in. (Used for Testing.)
70: *
71: * @param limit - upper limit
72: * @return - collection of negative payment request approval limits
73: */
74: public Collection<NegativePaymentRequestApprovalLimit> findBelowLimit(
75: KualiDecimal limit);
76:
77: }
|