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.labor.service.impl;
17:
18: import java.util.Iterator;
19: import java.util.Map;
20:
21: import org.kuali.module.labor.bo.LedgerEntry;
22: import org.kuali.module.labor.dao.LaborLedgerEntryDao;
23: import org.kuali.module.labor.service.LaborLedgerEntryService;
24: import org.springframework.transaction.annotation.Transactional;
25:
26: /**
27: * This class implements LaborLedgerEntryService to provide the access to labor ledger entries in data stores.
28: *
29: * @see org.kuali.module.labor.bo.LedgerEntry
30: */
31: @Transactional
32: public class LaborLedgerEntryServiceImpl implements
33: LaborLedgerEntryService {
34:
35: private LaborLedgerEntryDao laborLedgerEntryDao;
36:
37: /**
38: * @see org.kuali.module.labor.service.LaborLedgerEntryService#save(org.kuali.module.labor.bo.LedgerEntry)
39: */
40: public void save(LedgerEntry ledgerEntry) {
41: laborLedgerEntryDao.save(ledgerEntry);
42: }
43:
44: /**
45: * @see org.kuali.module.labor.service.LaborLedgerEntryService#getMaxSquenceNumber(org.kuali.module.labor.bo.LedgerEntry)
46: */
47: public Integer getMaxSequenceNumber(LedgerEntry ledgerEntry) {
48: return laborLedgerEntryDao.getMaxSquenceNumber(ledgerEntry);
49: }
50:
51: /**
52: * @see org.kuali.module.labor.service.LaborLedgerEntryService#find(java.util.Map)
53: */
54: public Iterator<LedgerEntry> find(Map<String, String> fieldValues) {
55: return laborLedgerEntryDao.find(fieldValues);
56: }
57:
58: /**
59: * Sets the laborLedgerEntryDao attribute value.
60: *
61: * @param laborLedgerEntryDao The laborLedgerEntryDao to set.
62: */
63: public void setLaborLedgerEntryDao(
64: LaborLedgerEntryDao laborLedgerEntryDao) {
65: this.laborLedgerEntryDao = laborLedgerEntryDao;
66: }
67: }
|