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 7, 2004
18: *
19: */
20: package org.kuali.module.pdp.service.impl;
21:
22: import java.util.List;
23:
24: import org.kuali.module.pdp.bo.CustomerBank;
25: import org.kuali.module.pdp.bo.CustomerProfile;
26: import org.kuali.module.pdp.dao.CustomerProfileDao;
27: import org.kuali.module.pdp.service.CustomerProfileService;
28: import org.springframework.transaction.annotation.Transactional;
29:
30: /**
31: * @author jsissom
32: */
33: @Transactional
34: public class CustomerProfileServiceImpl implements
35: CustomerProfileService {
36: private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger
37: .getLogger(CustomerProfileServiceImpl.class);
38:
39: private CustomerProfileDao customerProfileDao;
40:
41: public List getAll() {
42: return customerProfileDao.getAll();
43: }
44:
45: public void setCustomerProfileDao(CustomerProfileDao c) {
46: customerProfileDao = c;
47: }
48:
49: public CustomerProfile get(Integer id) {
50: return customerProfileDao.get(id);
51: }
52:
53: public CustomerProfile get(String chartCode, String orgCode,
54: String subUnitCode) {
55: return customerProfileDao.get(chartCode, orgCode, subUnitCode);
56: }
57:
58: public void save(CustomerProfile cp) {
59: customerProfileDao.save(cp);
60: }
61:
62: public void saveCustomerBank(CustomerBank cb) {
63: customerProfileDao.saveCustomerBank(cb);
64: }
65:
66: public void deleteCustomerBank(CustomerBank cb) {
67: customerProfileDao.deleteCustomerBank(cb);
68: }
69: }
|