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.service.impl;
17:
18: import java.util.Collection;
19:
20: import org.apache.log4j.Logger;
21: import org.kuali.core.util.KualiDecimal;
22: import org.kuali.module.purap.bo.NegativePaymentRequestApprovalLimit;
23: import org.kuali.module.purap.dao.NegativePaymentRequestApprovalLimitDao;
24: import org.kuali.module.purap.service.NegativePaymentRequestApprovalLimitService;
25: import org.springframework.transaction.annotation.Transactional;
26:
27: @Transactional
28: public class NegativePaymentRequestApprovalLimitServiceImpl implements
29: NegativePaymentRequestApprovalLimitService {
30: private static Logger LOG = Logger
31: .getLogger(NegativePaymentRequestApprovalLimitServiceImpl.class);
32:
33: private NegativePaymentRequestApprovalLimitDao dao;
34:
35: public void setNegativePaymentRequestApprovalLimitDao(
36: NegativePaymentRequestApprovalLimitDao dao) {
37: this .dao = dao;
38: }
39:
40: /**
41: * @see org.kuali.module.purap.service.NegativePaymentRequestApprovalLimitService#findByChart(java.lang.String)
42: */
43: public Collection<NegativePaymentRequestApprovalLimit> findByChart(
44: String chartCode) {
45: LOG.debug("Entering findByChart(String)");
46: LOG.debug("Leaving findByChart(String)");
47: return dao.findByChart(chartCode);
48: }
49:
50: /**
51: * @see org.kuali.module.purap.service.NegativePaymentRequestApprovalLimitService#findByChartAndAccount(java.lang.String,
52: * java.lang.String)
53: */
54: public Collection<NegativePaymentRequestApprovalLimit> findByChartAndAccount(
55: String chartCode, String accountNumber) {
56: LOG.debug("Entering findByChartAndAccount(String, String)");
57: LOG.debug("Leaving findByChartAndAccount(String, String)");
58: return dao.findByChartAndAccount(chartCode, accountNumber);
59: }
60:
61: /**
62: * @see org.kuali.module.purap.service.NegativePaymentRequestApprovalLimitService#findByChartAndOrganization(java.lang.String,
63: * java.lang.String)
64: */
65: public Collection<NegativePaymentRequestApprovalLimit> findByChartAndOrganization(
66: String chartCode, String organizationCode) {
67: LOG
68: .debug("Entering findByChartAndOrganization(String, String)");
69: LOG.debug("Leaving findByChartAndOrganization(String, String)");
70: return dao.findByChartAndOrganization(chartCode,
71: organizationCode);
72: }
73:
74: /**
75: * @see org.kuali.module.purap.service.NegativePaymentRequestApprovalLimitService#findAboveLimit(org.kuali.core.util.KualiDecimal)
76: */
77: public Collection<NegativePaymentRequestApprovalLimit> findAboveLimit(
78: KualiDecimal limit) {
79: LOG.debug("Entering findAboveLimit(KualiDecimal)");
80: LOG.debug("Leaving findAboveLimit(KualiDecimal)");
81: return dao.findAboveLimit(limit);
82: }
83:
84: /**
85: * @see org.kuali.module.purap.service.NegativePaymentRequestApprovalLimitService#findBelowLimit(org.kuali.core.util.KualiDecimal)
86: */
87: public Collection<NegativePaymentRequestApprovalLimit> findBelowLimit(
88: KualiDecimal limit) {
89: LOG.debug("Entering findBelowLimit(KualiDecimal)");
90: LOG.debug("Leaving findBelowLimit(KualiDecimal)");
91: return dao.findBelowLimit(limit);
92: }
93:
94: }
|