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

📄 order.java

📁 EJB实践的服务器是用SUN的服务器
💻 JAVA
字号:
package examples;

import javax.ejb.*;
import java.util.*;

/**
 * These are the business logic methods exposed publicly
 * by OrderBean.
 *
 * This interface is used by local clients.  The container
 * generates the implementation, which is called the
 * EJB local object, which delegates invocations to the actual bean.
 */
public interface Order extends EJBLocalObject {

	public String getOrderID();

	/**
	 * Returns the set of Order Line Items which compose
	 * this Order.  Each Line Item represents a specific
	 * product and quantity ordered.
	 */
	public Collection getLineItems();
    
    /**
     * Sets the set of order line items
     */
	public void setLineItems(Collection lineItems);

	/**
	 * get/set methods for the customer who placed the order
	 */
	public Customer getCustomer();
	public void setCustomer(Customer customer);

	/**
	 * Returns the total price.
	 * Total Price = calculated sum of lineItem prices
	 */
	public double getTotalPrice();

	/**
	 * Retrieves the date this was ordered on.  Date is set
	 * automatically when new Order is created.
	 */
	public java.sql.Timestamp getOrderDate();
	public void setOrderDate(java.sql.Timestamp date);

	/**
	 * get/set methods for the order status 
	 */
	public String getStatus();
	public void setStatus(String status);
}

⌨️ 快捷键说明

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