001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.kfs.module.ld.service.impl;
017    
018    import org.kuali.kfs.module.ld.businessobject.LaborGeneralLedgerEntry;
019    import org.kuali.kfs.module.ld.dataaccess.LaborDao;
020    import org.kuali.kfs.module.ld.dataaccess.LaborGeneralLedgerEntryDao;
021    import org.kuali.kfs.module.ld.service.LaborGeneralLedgerEntryService;
022    import org.springframework.transaction.annotation.Transactional;
023    
024    /**
025     * This class implements LaborGeneralLedgerEntryService to provide the access to labor general ledger entries in data stores.
026     * 
027     * @see org.kuali.kfs.module.ld.businessobject.LaborGeneralLedgerEntry
028     */
029    @Transactional
030    public class LaborGeneralLedgerEntryServiceImpl implements LaborGeneralLedgerEntryService {
031    
032        private LaborGeneralLedgerEntryDao laborGeneralLedgerEntryDao;
033        private LaborDao laborDao;
034    
035        /**
036         * @see org.kuali.kfs.module.ld.service.LaborGeneralLedgerEntryService#getMaxSequenceNumber()
037         */
038        public Integer getMaxSequenceNumber(LaborGeneralLedgerEntry laborGeneralLedgerEntry) {
039            return laborGeneralLedgerEntryDao.getMaxSequenceNumber(laborGeneralLedgerEntry);
040        }
041    
042        /**
043         * @see org.kuali.kfs.module.ld.service.LaborGeneralLedgerEntryService#save(org.kuali.kfs.module.ld.businessobject.LaborGeneralLedgerEntry)
044         */
045        public void save(LaborGeneralLedgerEntry laborGeneralLedgerEntry) {
046            laborDao.insert(laborGeneralLedgerEntry);
047        }
048    
049        /**
050         * Sets the laborGeneralLedgerEntryDao attribute value.
051         * 
052         * @param laborGeneralLedgerEntryDao The laborGeneralLedgerEntryDao to set.
053         */
054        public void setLaborGeneralLedgerEntryDao(LaborGeneralLedgerEntryDao laborGeneralLedgerEntryDao) {
055            this.laborGeneralLedgerEntryDao = laborGeneralLedgerEntryDao;
056        }
057    
058        /**
059         * Sets the laborDao attribute value.
060         * 
061         * @param laborDao The laborDao to set.
062         */
063        public void setLaborDao(LaborDao laborDao) {
064            this.laborDao = laborDao;
065        }
066    
067    }