1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.gl.service.impl;
17
18 import java.sql.Date;
19
20 import org.kuali.ole.gl.businessobject.CollectorDetail;
21 import org.kuali.ole.gl.dataaccess.CollectorDetailDao;
22 import org.kuali.ole.gl.service.CollectorDetailService;
23 import org.kuali.ole.sys.context.SpringContext;
24 import org.kuali.rice.krad.service.BusinessObjectService;
25 import org.springframework.transaction.annotation.Transactional;
26
27
28
29
30 @Transactional
31 public class CollectorDetailServiceImpl implements CollectorDetailService {
32 private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(CollectorDetailServiceImpl.class);
33
34 private CollectorDetailDao collectorDetailDao;
35
36
37
38
39
40
41
42
43 public void purgeYearByChart(String chartOfAccountsCode, int universityFiscalYear) {
44 LOG.debug("purgeYearByChart() started");
45
46 collectorDetailDao.purgeYearByChart(chartOfAccountsCode, universityFiscalYear);
47 }
48
49 public Integer getNextCreateSequence(Date date) {
50 return collectorDetailDao.getMaxCreateSequence(date);
51 }
52
53
54
55
56
57
58
59 public void save(CollectorDetail detail) {
60 LOG.debug("save() started");
61 SpringContext.getBean(BusinessObjectService.class).save(detail);
62 }
63
64 public void setCollectorDetailDao(CollectorDetailDao idbd) {
65 collectorDetailDao = idbd;
66 }
67 }