01: /*
02: * Copyright 2005-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.chart.service.impl;
17:
18: import org.kuali.module.chart.bo.ProjectCode;
19: import org.kuali.module.chart.dao.ProjectCodeDao;
20: import org.kuali.module.chart.service.ProjectCodeService;
21: import org.springframework.transaction.annotation.Transactional;
22:
23: /**
24: * This class is the service implementation for the ProjectCode structure. This is the default implementation, that is delivered
25: * with Kuali.
26: */
27: @Transactional
28: public class ProjectCodeServiceImpl implements ProjectCodeService {
29: private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger
30: .getLogger(ProjectCodeServiceImpl.class);
31:
32: private ProjectCodeDao projectCodeDao;
33:
34: /**
35: *
36: * @see org.kuali.module.chart.service.ProjectCodeService#getByPrimaryId(java.lang.String)
37: */
38: public ProjectCode getByPrimaryId(String projectCode) {
39: return projectCodeDao.getByPrimaryId(projectCode);
40: }
41:
42: /**
43: *
44: * @see org.kuali.module.chart.service.ProjectCodeService#getByName(java.lang.String)
45: */
46: public ProjectCode getByName(String name) {
47: return projectCodeDao.getByName(name);
48: }
49:
50: /**
51: * @see org.kuali.module.chart.service.ProjectCodeService#save(org.kuali.bo.ProjectCode)
52: */
53: public void save(ProjectCode projectCode) {
54: projectCodeDao.save(projectCode);
55: }
56:
57: /**
58: * @param projectDao The projectDao to set.
59: */
60: public void setProjectCodeDao(ProjectCodeDao projectCodeDao) {
61: this.projectCodeDao = projectCodeDao;
62: }
63:
64: }
|