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 org.kuali.module.labor.bo.LaborGeneralLedgerEntry;
19: import org.kuali.module.labor.dao.LaborDao;
20: import org.kuali.module.labor.dao.LaborGeneralLedgerEntryDao;
21: import org.kuali.module.labor.service.LaborGeneralLedgerEntryService;
22: import org.springframework.transaction.annotation.Transactional;
23:
24: /**
25: * This class implements LaborGeneralLedgerEntryService to provide the access to labor general ledger entries in data stores.
26: *
27: * @see org.kuali.module.labor.bo.LaborGeneralLedgerEntry
28: */
29: @Transactional
30: public class LaborGeneralLedgerEntryServiceImpl implements
31: LaborGeneralLedgerEntryService {
32:
33: private LaborGeneralLedgerEntryDao laborGeneralLedgerEntryDao;
34: private LaborDao laborDao;
35:
36: /**
37: * @see org.kuali.module.labor.service.LaborGeneralLedgerEntryService#getMaxSequenceNumber()
38: */
39: public Integer getMaxSequenceNumber(
40: LaborGeneralLedgerEntry laborGeneralLedgerEntry) {
41: return laborGeneralLedgerEntryDao
42: .getMaxSequenceNumber(laborGeneralLedgerEntry);
43: }
44:
45: /**
46: * @see org.kuali.module.labor.service.LaborGeneralLedgerEntryService#save(org.kuali.module.labor.bo.LaborGeneralLedgerEntry)
47: */
48: public void save(LaborGeneralLedgerEntry laborGeneralLedgerEntry) {
49: laborDao.insert(laborGeneralLedgerEntry);
50: }
51:
52: /**
53: * Sets the laborGeneralLedgerEntryDao attribute value.
54: *
55: * @param laborGeneralLedgerEntryDao The laborGeneralLedgerEntryDao to set.
56: */
57: public void setLaborGeneralLedgerEntryDao(
58: LaborGeneralLedgerEntryDao laborGeneralLedgerEntryDao) {
59: this .laborGeneralLedgerEntryDao = laborGeneralLedgerEntryDao;
60: }
61:
62: /**
63: * Sets the laborDao attribute value.
64: *
65: * @param laborDao The laborDao to set.
66: */
67: public void setLaborDao(LaborDao laborDao) {
68: this.laborDao = laborDao;
69: }
70:
71: }
|