customerorderserviceimpl.java

来自「利用Java开发的网上书店系统」· Java 代码 · 共 85 行

JAVA
85
字号
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 + =
减小字号Ctrl + -
显示快捷键?