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.kfs.service.impl;
17:
18: import org.kuali.kfs.bo.OriginationCode;
19: import org.kuali.kfs.dao.OriginationCodeDao;
20: import org.kuali.kfs.service.OriginationCodeService;
21: import org.springframework.transaction.annotation.Transactional;
22:
23: @Transactional
24: public class OriginationCodeServiceImpl implements
25: OriginationCodeService {
26: private OriginationCodeDao originationCodeDao;
27:
28: public OriginationCodeServiceImpl() {
29: super ();
30: }
31:
32: /*
33: * (non-Javadoc)
34: *
35: * @see org.kuali.core.service.OriginationCodeService#getByPrimaryKey(java.lang.String)
36: */
37: public OriginationCode getByPrimaryKey(String code) {
38: return originationCodeDao.findByCode(code);
39: }
40:
41: /*
42: * (non-Javadoc)
43: *
44: * @see org.kuali.core.service.OriginationCodeService#delete(org.kuali.core.bo.OriginationCode)
45: */
46: public void delete(OriginationCode code) {
47: originationCodeDao.delete(code);
48: }
49:
50: /*
51: * (non-Javadoc)
52: *
53: * @see org.kuali.core.service.OriginationCodeService#save(org.kuali.core.bo.OriginationCode)
54: */
55: public void save(OriginationCode code) {
56: originationCodeDao.save(code);
57: }
58:
59: /*
60: * (non-Javadoc)
61: *
62: * @see org.kuali.core.service.OriginationCodeService#setOriginationCodeDao(org.kuali.core.dao.OriginationCodeDao)
63: */
64: public void setOriginationCodeDao(OriginationCodeDao dao) {
65: this.originationCodeDao = dao;
66: }
67: }
|