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.gl.service.impl;
17:
18: import org.kuali.module.gl.bo.CollectorDetail;
19: import org.kuali.module.gl.dao.CollectorDetailDao;
20: import org.kuali.module.gl.service.CollectorDetailService;
21: import org.springframework.transaction.annotation.Transactional;
22:
23: /**
24: * The base implementation of CollectorDetailService
25: */
26: @Transactional
27: public class CollectorDetailServiceImpl implements
28: CollectorDetailService {
29: private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger
30: .getLogger(CollectorDetailServiceImpl.class);
31:
32: private CollectorDetailDao collectorDetailDao;
33:
34: /**
35: * Purge the sufficient funds balance table by year/chart
36: *
37: * @param chart chart of CollectorDetails to purge
38: * @param year year of CollectorDetails to purage
39: * @see org.kuali.module.gl.service.CollectorDetailService#purgeYearByChart(java.lang.String, int)
40: */
41: public void purgeYearByChart(String chartOfAccountsCode,
42: int universityFiscalYear) {
43: LOG.debug("purgeYearByChart() started");
44:
45: collectorDetailDao.purgeYearByChart(chartOfAccountsCode,
46: universityFiscalYear);
47: }
48:
49: /**
50: * Saves a CollectorDetail
51: *
52: * @param detail the detail to save
53: * @see org.kuali.module.gl.service.CollectorDetailService#save(org.kuali.module.gl.bo.CollectorDetail)
54: */
55: public void save(CollectorDetail detail) {
56: LOG.debug("save() started");
57:
58: collectorDetailDao.save(detail);
59: }
60:
61: public void setCollectorDetailDao(CollectorDetailDao idbd) {
62: collectorDetailDao = idbd;
63: }
64: }
|