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

📄 portfoliohomelocal.java

📁 Oracle的J2EE Sample
💻 JAVA
字号:
/*
 * @author  : Pushkala
 * @version : 1.0
 *
 * Development Environment : Oracle9i JDeveloper
 *
 * Name of the File : PortfolioHomeLocal.java
 *
 * Creation / Modification History
 *    Pushkala        29-Apr-2002        Created
 *
 */
package oracle.otnsamples.ibfbs.trademanagement.ejb;

import javax.ejb.CreateException;
import javax.ejb.FinderException;

import java.util.Date;

/**
 * This interface is the Local home interface of the PORTFOLIO entity EJB.
 * Using this local home interface, clients can create objects implementing
 * local interfaces. The Session Facade Bean namely
 * 'TradeManagementSessionFacadeBean' invokes the create() method of this home
 * interface to get PortfolioBean which implements the PortfolioLocal interface.
 * Note : It is  recommended that Local EJB Objects are invoked by the Session
 * Bean or Entity Bean executing in the same EJB container. Here in this
 * application, TradeManagementSessionFacadeBean invokes the methods on the
 * Local Objects.
 *
 * @version 1.0
 * @since   1.0
 */
public interface PortfolioHomeLocal extends javax.ejb.EJBLocalHome {

  /**
   * Method to create PortfolioBean Local EJB Object.
   *
   * @param accountNumber Account Number associated with the Portfolio
   * @param id            Id of the portfolio
   * @param lineNumber    Line Number associated with the Portfolio
   * @param quantity      Stock Quantity associated with the Portfolio
   * @param price         Stock Price Value associated with the Portfolio
   * @param symbol        Stock Symbol Value associated with the Portfolio
   * @param purchaseDate  Purchase Date associated with the Portfolio
   * @param purchaseMode  Purchase Mode associated with the Portfolio
   * @param tradeId       Trade Id Value associated with the Portfolio
   * @return Local EJB Object implementing PortfolioLocal interface
   * @exception CreateException If create fails
   * @since 1.0
   */
  public PortfolioLocal create(Integer accountNumber, Integer id,
                               Integer lineNumber, Integer quantity,
                               float price, String symbol, Date purchaseDate,
                               String purchaseMode, Integer tradeId)
      throws CreateException;

  /**
   * Method to Find a particular PortfolioBean Local EJB Object
   * by providing its primary key.
   *
   * @param primaryKey Primary Key Field.
   * @return Local EJB Object implementing PortfolioLocal interface.
   * @exception FinderException
   * @since 1.0
   */
  public PortfolioLocal findByPrimaryKey(Integer primaryKey)
      throws FinderException;
}

⌨️ 快捷键说明

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