protected void prepare(){
  for (  ProcessInfoParameter para : getParameter()) {
    String name=para.getParameterName();
    if (para.getParameter() == null)     ;
 else     if (name.equals(I_M_Forecast.COLUMNNAME_M_Forecast_ID))     p_M_Forecast_ID=para.getParameterAsInt();
 else     if (name.equals(I_PP_ForecastRun.COLUMNNAME_PP_ForecastRun_ID))     p_PP_ForecastRun_ID=para.getParameterAsInt();
 else     if (name.equals(I_M_ForecastLine.COLUMNNAME_DatePromised)) {
      p_StartDate=(Timestamp)para.getParameter();
      p_EndDate=(Timestamp)para.getParameter_To();
    }
 else     if (name.equals("ForecastActionType"))     p_ForecastActionType=(String)para.getParameter();
 else     if (name.equals("ForecastLoadType"))     p_ForecastLoadType=(String)para.getParameter();
 else     if (name.equals("DaysAfterDue"))     p_DaysAfterDue=para.getParameterAsInt();
 else     if (name.equals(I_M_Product.COLUMNNAME_M_Product_ID))     p_M_Product_ID=para.getParameterAsInt();
 else     if (name.equals(I_M_Product.COLUMNNAME_M_Product_Category_ID))     p_M_Product_Category_ID=para.getParameterAsInt();
 else     if (name.equals(I_M_Product_Classification.COLUMNNAME_M_Product_Classification_ID))     p_M_Product_Classification_ID=para.getParameterAsInt();
 else     if (name.equals(I_M_Product_Class.COLUMNNAME_M_Product_Class_ID))     p_M_Product_Class_ID=para.getParameterAsInt();
 else     if (name.equals(I_M_Product_Group.COLUMNNAME_M_Product_Group_ID))     p_M_Product_Group_ID=para.getParameterAsInt();
 else     if (name.equals(I_M_ForecastLine.COLUMNNAME_SalesRep_ID))     p_SalesRep_ID=para.getParameterAsInt();
 else     log.log(Level.SEVERE,"Unknown Parameter: " + name);
  }
}

protected void prepare ( ) { for ( ProcessInfoParameter para : getParameter ( ) ) { String name = para . getParameterName ( ) ; if ( para . getParameter ( ) == null ) ; else if ( name . equals ( I_M_Forecast . COLUMNNAME_M_Forecast_ID ) ) p_M_Forecast_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_PP_ForecastRun . COLUMNNAME_PP_ForecastRun_ID ) ) p_PP_ForecastRun_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_M_ForecastLine . COLUMNNAME_DatePromised ) ) { p_StartDate = ( Timestamp ) para . getParameter ( ) ; p_EndDate = ( Timestamp ) para . getParameter_To ( ) ; } else if ( name . equals ( "ForecastActionType" ) ) p_ForecastActionType = ( String ) para . getParameter ( ) ; else if ( name . equals ( "ForecastLoadType" ) ) p_ForecastLoadType = ( String ) para . getParameter ( ) ; else if ( name . equals ( "DaysAfterDue" ) ) p_DaysAfterDue = para . getParameterAsInt ( ) ; else if ( name . equals ( I_M_Product . COLUMNNAME_M_Product_ID ) ) p_M_Product_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_M_Product . COLUMNNAME_M_Product_Category_ID ) ) p_M_Product_Category_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_M_Product_Classification . COLUMNNAME_M_Product_Classification_ID ) ) p_M_Product_Classification_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_M_Product_Class . COLUMNNAME_M_Product_Class_ID ) ) p_M_Product_Class_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_M_Product_Group . COLUMNNAME_M_Product_Group_ID ) ) p_M_Product_Group_ID = para . getParameterAsInt ( ) ; else if ( name . equals ( I_M_ForecastLine . COLUMNNAME_SalesRep_ID ) ) p_SalesRep_ID = para . getParameterAsInt ( ) ; else log . log ( Level . SEVERE , "Unknown Parameter: " + name ) ; } }
prepare - e . g . , get parameters .
