shoppingclientcontroller.java

来自「一个优秀的供应商管理系统」· Java 代码 · 共 41 行

JAVA
41
字号
package apusic.myshop.control.ejb;import java.util.Collection;import java.rmi.RemoteException;import javax.ejb.EJBObject;import javax.ejb.FinderException;import apusic.myshop.cart.ejb.Cart;import apusic.myshop.customer.ejb.Customer;import apusic.myshop.order.ejb.Order;import apusic.myshop.control.event.BaseEvent;import apusic.myshop.control.EventException;/** * This is the EJB-tier controller of the MVC. * It is implemented as a session EJB. It controls all the activities * that happen in a client session. * It also provides mechanisms to access other session EJBs. * @author Inderjeet Singh */public interface ShoppingClientController extends EJBObject {  public Collection handleEvent(BaseEvent be)	  throws RemoteException, EventException;  public Collection getOrders(String userId)	  throws RemoteException, FinderException;  public Order getOrder(int requestId)	  throws RemoteException, FinderException;  /** @return the shopping cart session bean for this user. */  public Cart getCart() throws RemoteException;  public Customer getCustomer() throws RemoteException;}

⌨️ 快捷键说明

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