warehouse.java
来自「一个java写的加密算法」· Java 代码 · 共 42 行
JAVA
42 行
/* * Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */package samples.jdbc.transactions.ejb;import javax.ejb.EJBObject;import java.rmi.RemoteException;import java.sql.SQLException;/** * Remote interface for the WarehouseEJB. The remote interface defines all possible * business methods for the bean. These are the methods going to be invoked remotely * by clients, once they have a reference to the remote interface. * * Clients generally take the help of JNDI to lookup the bean's home interface and * then use the home interface to obtain references to the bean's remote interface. */public interface Warehouse extends EJBObject { /** * Updates the received for particular product inside the particular order. * sets the status to shipped * @param productId * @param orderId * @param quantity the received quantity */ public void ship(String productId, String orderId, int quantity) throws RemoteException; /** * Sets the get the status for the particular product inside the particular order. * @param productId * @param orderId * @return the status */ public String getStatus(String productId, String orderId) throws RemoteException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?