📄 portfoliolocal.java
字号:
/*
* @author : Pushkala
* @version : 1.0
*
* Development Environment : Oracle9i JDeveloper
*
* Name of the File : PortfolioLocal.java
*
* Creation / Modification History
* Pushkala 26-Apr-2002 Created
*
*/
package oracle.otnsamples.ibfbs.trademanagement.ejb;
import java.util.Date;
/**
* This is the Local EJB interface for the PORTFOLIO entity
* This acts as local interface for the PortfolioBean which is a local
* EJB Object. UserAccount is an Entity Object. Every User Account can have
* multiple Portfolio and this 1:N relationship between User Account
* Entity Bean and Portfolio Bean is managed by the OC4J EJB Container.
*
* This new feature called CMR (Container Managed RelationShips) is a new feature
* added in EJB 2.0 Specification.
*
* Note that the JSP/Servlet Clients never invoke the Local Objects directly.
* Session Bean namely 'TradeManagementSessionFacadeBean' invokes the methods
* on this Local Objects on the behalf of outside clients. This pattern is called
* as Session Facade Pattern
*
* @version 1.0
* @since 1.0
*/
public interface PortfolioLocal extends javax.ejb.EJBLocalObject {
// Declare the remote methods invoked by the Session Facade Bean
/**
* Method to retrieve the id value associated with the Portfolio
*
* @return The Desired Id Value
* @since 1.0
*/
public Integer getId();
/**
* Method to assign the new Id value for the Portfolio.
*
* @param id New Id Value
* @since 1.0
*/
public void setId(Integer id);
/**
* Method to retrieve the value of AccountNumber associated with the Portfolio
*
* @return The Desired Account Number Value
* @since 1.0
*/
public Integer getAccountNumber();
/**
* Method to assign the new AccountNumber value for the Portfolio.
*
* @param accountNumber New Account Number Value
* @since 1.0
*/
public void setAccountNumber(Integer accountNumber);
/**
* Method to retrieve the line number associated with the Portfolio
*
* @return The Line Number Value
* @since 1.0
*/
public Integer getLineNo();
/**
* Method to assign the line number value for the Portfolio.
*
* @param lineNumber Line Number Value
* @since 1.0
*/
public void setLineNo(Integer lineNumber);
/**
* Method to retrieve the value of quantity associated with the Portfolio
*
* @return The Quantity Value
* @since 1.0
*/
public Integer getQuantity();
/**
* Method to assign the Quantity value for the Portfolio.
*
* @param quantity Quantity Value
* @since 1.0
*/
public void setQuantity(Integer quantity);
/**
* Method to retrieve the value of Stock Price associated with the Portfolio
*
* @return The Stock Price Value
* @since 1.0
*/
public float getPrice();
/**
* Method to assign the Stock Price value for the Portfolio.
*
* @param price Stock Price Value
* @since 1.0
*/
public void setPrice(float price);
/**
* Method to retrieve the value of Stock Symbol associated with the Portfolio
*
* @return The Stock Symbol Value
* @since 1.0
*/
public String getSymbol();
/**
* Method to assign the Stock Symbol value for the Portfolio.
*
* @param symbol Symbol Value
* @since 1.0
*/
public void setSymbol(String symbol);
/**
* Method to retrieve the Purchase Date associated with the Portfolio
*
* @return The Desired Purchase Date Value
* @since 1.0
*/
public Date getPurchaseDate();
/**
* Method to assign the Purchase Date value for the Portfolio.
*
* @param purchaseDate Purchase Date Value
* @since 1.0
*/
public void setPurchaseDate(Date purchaseDate);
/**
* Method to retrieve the Purchase Mode associated with the Portfolio
*
* @return The Desired Purchase Mode Value
* @since 1.0
*/
public String getPurchaseMode();
/**
* Method to assign the Purchase Mode value for the Portfolio.
*
* @param purchaseMode Purchase Mode Value
* @since 1.0
*/
public void setPurchaseMode(String purchaseMode);
/**
* Method to retrieve the value of Trade Id associated with the Portfolio
*
* @return The Desired Trade Id Value
* @since 1.0
*/
public Integer getTradeId();
/**
* Method to assign the Trade Id value for the Portfolio.
*
* @param tradeId Trade Id Value
* @since 1.0
*/
public void setTradeId(Integer tradeId);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -