Class MProductionPlan

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_M_ProductionPlan, I_Persistent, Evaluatee

public class MProductionPlan extends X_M_ProductionPlan
Author:
hengsin
See Also:
  • Constructor Details

    • MProductionPlan

      public MProductionPlan(Properties ctx, String M_ProductionPlan_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      M_ProductionPlan_UU - UUID key
      trxName - Transaction
    • MProductionPlan

      public MProductionPlan(Properties ctx, int M_ProductionPlan_ID, String trxName)
      Parameters:
      ctx -
      M_ProductionPlan_ID -
      trxName -
    • MProductionPlan

      public MProductionPlan(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
  • Method Details

    • getLines

      public MProductionLine[] getLines()
      Returns:
      array of MProductionLine
    • deleteLines

      public void deleteLines(String trxName)
      Delete production lines
      Parameters:
      trxName -
    • createLines

      public int createLines(boolean mustBeStocked)
      Create production lines
      Parameters:
      mustBeStocked - true to check on hand quantity of components
      Returns:
      number of lines created
    • beforeDelete

      protected boolean beforeDelete()
      Description copied from class: PO
      Execute before Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeDelete in class PO
      Returns:
      true if record can be deleted
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved