protected void prepare(){
  ProcessInfoParameter[] parameters=getParameter();
  for (  ProcessInfoParameter parameter : parameters) {
    String name=parameter.getParameterName();
    if (parameter.getParameter() == null)     ;
    if (name.equals(MCostDetail.COLUMNNAME_C_AcctSchema_ID)) {
      p_C_AcctSchema_ID=parameter.getParameterAsInt();
    }
 else     if (name.equals(MCostDetail.COLUMNNAME_M_CostType_ID)) {
      p_M_CostType_ID=parameter.getParameterAsInt();
    }
 else     if (name.equals(MCostDetail.COLUMNNAME_M_CostElement_ID)) {
      p_M_CostElement_ID=parameter.getParameterAsInt();
    }
 else     if (name.equals(MCostDetail.COLUMNNAME_M_Product_ID)) {
      p_M_Product_ID=parameter.getParameterAsInt();
    }
 else     if (name.equals(MCostDetail.COLUMNNAME_DateAcct)) {
      p_DateAcct=(Timestamp)parameter.getParameter();
      if (p_DateAcct == null)       throw new FillMandatoryException(MCostDetail.COLUMNNAME_DateAcct);
      p_DateAcctTo=(Timestamp)parameter.getParameter_To();
      if (p_DateAcctTo == null)       p_DateAcctTo=new Timestamp(System.currentTimeMillis());
    }
  }
  if (p_DateAcct != null) {
    setup();
  }
}

protected void prepare ( ) { ProcessInfoParameter [ ] parameters = getParameter ( ) ; for ( ProcessInfoParameter parameter : parameters ) { String name = parameter . getParameterName ( ) ; if ( parameter . getParameter ( ) == null ) ; if ( name . equals ( MCostDetail . COLUMNNAME_C_AcctSchema_ID ) ) { p_C_AcctSchema_ID = parameter . getParameterAsInt ( ) ; } else if ( name . equals ( MCostDetail . COLUMNNAME_M_CostType_ID ) ) { p_M_CostType_ID = parameter . getParameterAsInt ( ) ; } else if ( name . equals ( MCostDetail . COLUMNNAME_M_CostElement_ID ) ) { p_M_CostElement_ID = parameter . getParameterAsInt ( ) ; } else if ( name . equals ( MCostDetail . COLUMNNAME_M_Product_ID ) ) { p_M_Product_ID = parameter . getParameterAsInt ( ) ; } else if ( name . equals ( MCostDetail . COLUMNNAME_DateAcct ) ) { p_DateAcct = ( Timestamp ) parameter . getParameter ( ) ; if ( p_DateAcct == null ) throw new FillMandatoryException ( MCostDetail . COLUMNNAME_DateAcct ) ; p_DateAcctTo = ( Timestamp ) parameter . getParameter_To ( ) ; if ( p_DateAcctTo == null ) p_DateAcctTo = new Timestamp ( System . currentTimeMillis ( ) ) ; } } if ( p_DateAcct != null ) { setup ( ) ; } }
prepare - e . g . , get parameters .
