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.sys.service.impl;
017    
018    import org.kuali.kfs.sys.businessobject.HomeOrigination;
019    import org.kuali.kfs.sys.dataaccess.HomeOriginationDao;
020    import org.kuali.kfs.sys.service.HomeOriginationService;
021    import org.kuali.kfs.sys.service.NonTransactional;
022    import org.kuali.rice.kns.util.spring.CacheNoCopy;
023    
024    @NonTransactional
025    public class HomeOriginationServiceImpl implements HomeOriginationService {
026    
027        private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(HomeOriginationServiceImpl.class);
028    
029        private HomeOriginationDao homeOriginationDao;
030    
031        /**
032         * Retrieves a HomeOrigination object. Currently, there is only a single, unique HomeOriginationCode record in the database.
033         */
034        @CacheNoCopy
035        public HomeOrigination getHomeOrigination() {
036            return getHomeOriginationDao().getHomeOrigination();
037        }
038    
039        /**
040         * @return Returns the homeOriginationDao.
041         */
042        public HomeOriginationDao getHomeOriginationDao() {
043            return homeOriginationDao;
044        }
045    
046        /**
047         * @param homeOriginationDao The homeOriginationDao to set.
048         */
049        public void setHomeOriginationDao(HomeOriginationDao homeOriginationDao) {
050            this.homeOriginationDao = homeOriginationDao;
051        }
052    
053    }