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: /*
17: * Created on Jul 28, 2004
18: *
19: * To change the template for this generated file go to
20: * Window>Preferences>Java>Code Generation>Code and Comments
21: */
22: package org.kuali.module.pdp.service.impl;
23:
24: import java.util.List;
25:
26: import org.kuali.module.pdp.bo.Bank;
27: import org.kuali.module.pdp.dao.BankDao;
28: import org.kuali.module.pdp.service.BankService;
29: import org.springframework.transaction.annotation.Transactional;
30:
31: /**
32: * @author delyea
33: */
34: @Transactional
35: public class BankServiceImpl implements BankService {
36: private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger
37: .getLogger(BankServiceImpl.class);
38:
39: private BankDao bankDao;
40:
41: public void setBankDao(BankDao c) {
42: bankDao = c;
43: }
44:
45: public List getAll() {
46: return bankDao.getAll();
47: }
48:
49: public Bank get(Integer bankId) {
50: return bankDao.get(bankId);
51: }
52:
53: public List getAllBanksForDisbursementType(String type) {
54: return bankDao.getAllBanksForDisbursementType(type);
55: }
56:
57: public void save(Bank b) {
58: bankDao.save(b);
59: }
60:
61: }
|