📄 shoppingclientcontroller.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -