exchange.java

来自「Oracle的J2EE Sample」· Java 代码 · 共 46 行

JAVA
46
字号
/*
 * @author  : Elangovan
 * @version : 1.0
 *
 * Development Environment : Oracle9i JDeveloper
 * Name of the File        : Exchange.java
 *
 * Creation / Modification History
 *    Elangovan           26-Apr-2002        Created
 *
 */
package oracle.otnsamples.ibfbs.admin.ejb;

import javax.ejb.EJBObject;
import java.rmi.RemoteException;
import java.util.Date;

/**
 * This interface is the remote view of Exchange Service. Clients invoke methods
 * on the bean using this interface.
 *
 * @see ExchangeBean.java
 * @see ExchangeHome.java
 * @see ExchangeQueue.java
 */
public interface Exchange extends EJBObject {

  /**
   * Executes the trade order and sends a conformation mail.
   *
   * @param toAddress To mail address where conformation has to be sent
   * @param symbol stock symbol traded
   * @param tradeDate trade date
   * @param tradeType Trade type, S - sell, B - buy
   * @param qty quantity of stocks traded
   * @return status of process order, 0 - success, -1 - failure
   * @exception RemoteException if process order fails
   * @since 1.0
   */
  public Integer processOrder(String toAddress, String symbol, Date tradeDate, 
                              String tradeType, Integer qty) 
      throws RemoteException;

  
}

⌨️ 快捷键说明

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