?? customerserviceimpl.java
字號:
/**
*
*/
package com.ascent.business.service;
import java.util.List;
import com.ascent.bean.Customer;
import com.ascent.business.ICustomerService;
import com.ascent.dao.ICustomerDAO;
public class CustomerServiceImpl implements ICustomerService{
private ICustomerDAO customerDAO;
/**
*
* @return
*/
public ICustomerDAO getCustomerDAO(){
return this.customerDAO;
}
public void setCustomerDAO(ICustomerDAO customerDAO){
this.customerDAO = customerDAO;
}
/**
*
*/
public CustomerServiceImpl() {
super();
// TODO Auto-generated constructor stub
}
/**
*
* @param Customer
* @return Customer
*/
public Customer saveCustomer(Customer customer){
return this.getCustomerDAO().saveCustomer(customer);
}
/**
*
* @param id Integer
*
* @return Customer
*/
public Customer getCustomer(int id){
return this.getCustomerDAO().getCustomer(new Integer(id));
}
/**
*
* @return List
*/
public List findCustomerAll(){
return this.getCustomerDAO().findCustomerAll();
}
/**
*
* @param type String
*
* @return List
*/
public List findCustomerByName(String name){
return this.getCustomerDAO().findCustomerByName(name);
}
/**
*
* @param Customer
*
*/
public Customer updateCustomer(Customer customer){
return this.getCustomerDAO().updateCustomer(customer);
}
public void removeCustomer(Customer customer){
this.getCustomerDAO().removeCustomer(customer);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -