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.OffsetDefinition;
19: import org.kuali.module.chart.dao.OffsetDefinitionDao;
20: import org.kuali.module.chart.service.OffsetDefinitionService;
21: import org.springframework.transaction.annotation.Transactional;
22:
23: /**
24: * This class is the service implementation for the OffsetDefinition structure. This is the default implementation, that is
25: * delivered with Kuali.
26: */
27: @Transactional
28: public class OffsetDefinitionServiceImpl implements
29: OffsetDefinitionService {
30: private OffsetDefinitionDao offsetDefinitionDao;
31:
32: /**
33: * @see org.kuali.module.chart.service.OffsetDefinitionService#getByPrimaryId(java.lang.Integer, java.lang.String,
34: * java.lang.String, java.lang.String)
35: */
36: public OffsetDefinition getByPrimaryId(
37: Integer universityFiscalYear, String chartOfAccountsCode,
38: String financialDocumentTypeCode,
39: String financialBalanceTypeCode) {
40: return offsetDefinitionDao.getByPrimaryId(universityFiscalYear,
41: chartOfAccountsCode, financialDocumentTypeCode,
42: financialBalanceTypeCode);
43: }
44:
45: /**
46: * @param offsetDefinitionDao The offsetDefinitionDao to set.
47: */
48: public void setOffsetDefinitionDao(
49: OffsetDefinitionDao offsetDefinitionDao) {
50: this.offsetDefinitionDao = offsetDefinitionDao;
51: }
52: }
|