?? customerserviceimpl.java
字號:
package com.briup.customer.service.impl;import java.util.Set;import com.briup.common.dao.pojo.Product;import com.briup.common.dao.pojo.User;import com.briup.common.exception.CommonException;import com.briup.customer.dao.ICustomerDao;import com.briup.customer.service.ICustomerService;public class CustomerServiceImpl implements ICustomerService{ private ICustomerDao customerDao; public void setCustomerDao(ICustomerDao customerDao){ this.customerDao=customerDao; } // 通過品牌名稱查詢品牌信息 public Product getProductInfo(String name) throws Exception { // TODO Auto-generated method stub try { return customerDao.getProductInfo(name); } catch (CommonException e) { e.printStackTrace(); throw new CommonException(e.getMessage()); } } // 根據(jù)品牌名稱查找品牌信息 public Product getProductByName(String name) throws Exception { try{ Product product = customerDao.findProductByName(name); return product; }catch(Exception e){ e.printStackTrace(); return null; } } public Set getProduct(User user) throws Exception { // TODO Auto-generated method stub return null; }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -