For example let
If the Java class for the VO is not generated
public void executeViewObject() {
StockDetailsVOImpl vo = getStockDetailsVO();
vo.executeQuery();
}
If you want to set some Bind Variable value before executing the VO, use the following code
public void executeViewObject(int portfolioID) {
StockDetailsVOImpl vo = getStockDetailsVO();
vo.setBindPortfolioID(portfolioID);
vo.executeQuery();
}
- VO name be StockDetailsVO
- AM name be StockMarketAM
If the Java class for the VO is not generated
- Go to the Java section of the StockDetailsVO and generate the StockDetailsVOImpl.java
- If you have the Bind Variables, then click the check box Include bind variable accessors
- Go to the Java section of the AM and generate the StockMarketAMImpl.java
public void executeViewObject() {
StockDetailsVOImpl vo = getStockDetailsVO();
vo.executeQuery();
}
If you want to set some Bind Variable value before executing the VO, use the following code
public void executeViewObject(int portfolioID) {
StockDetailsVOImpl vo = getStockDetailsVO();
vo.setBindPortfolioID(portfolioID);
vo.executeQuery();
}
No comments:
Post a Comment