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

📄 customerorderserviceimpl.java

📁 利用Java开发的网上书店系统
💻 JAVA
字号:
package com.ascent.business.service;

import java.util.List;

import com.ascent.bean.Customerorder;
import com.ascent.business.ICustomerOrderService;
import com.ascent.dao.ICustomerOrderDAO;

public class CustomerOrderServiceImpl implements ICustomerOrderService {
	private ICustomerOrderDAO customerOrderDAO;

	/**
	 * 
	 * @return
	 */
	public ICustomerOrderDAO getCustomerOrderDAO() {
		return this.customerOrderDAO;
	}

	public void setCustomerOrderDAO(ICustomerOrderDAO customerOrderDAO) {
		this.customerOrderDAO = customerOrderDAO;
	}

	/**
	 * 
	 */
	public CustomerOrderServiceImpl() {
		super();
		// TODO Auto-generated constructor stub
	}

	/**
	 * 
	 * @param Customer
	 * @return Customer
	 */
	public Customerorder saveCustomerOrder(Customerorder customerorder) {

		return this.getCustomerOrderDAO().saveCustomerOrder(customerorder);
	}

	/**
	 * 
	 * @param id
	 *            Integer
	 * 
	 * @return Customer
	 */
	public Customerorder getCustomerOrder(int id) {
		return this.getCustomerOrderDAO().getCustomerOrder(new Integer(id));
	}

	/**
	 * 
	 * @return List
	 */
	public List findCustomerOrderAll() {
		return this.getCustomerOrderDAO().findCustomerOrderAll();
	}

	/**
	 * 
	 * @param type
	 *            String
	 * 
	 * @return List
	 */
	public List findCustomerOrderByName(String name) {
		return this.getCustomerOrderDAO().findCustomerOrderByName(name);
	}

	public List findCustomerOrderByOrderId(int id) {
		return (List) this.getCustomerOrderDAO().findCustomerOrderByOrderId(id);
	}

	/**
	 * 
	 * @param Customer
	 * 
	 */
	public void removeCustomerOrder(Customerorder customerorder) {
		this.getCustomerOrderDAO().removeCustomerOrder(customerorder);
	}
}

⌨️ 快捷键说明

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