⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customerserviceimpl.java

📁 网上书店源码。功能全面
💻 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 void removeCustomer(Customer customer){
		this.getCustomerDAO().removeCustomer(customer);
	}


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -