Class MProcessDrillRule

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

public class MProcessDrillRule extends X_AD_Process_DrillRule implements ImmutablePOSupport
Process drill rule model
Author:
Igor Pojzl, Cloudempiere, Peter Takacs, Cloudempiere
See Also:
  • Constructor Details

    • MProcessDrillRule

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

      public MProcessDrillRule(Properties ctx, int AD_Process_DrillRule_ID, String trxName)
      Parameters:
      ctx -
      AD_Process_DrillRule_ID -
      trxName -
    • MProcessDrillRule

      public MProcessDrillRule(Properties ctx, int AD_Process_DrillRule_ID, String trxName, String[] virtualColumns)
      Parameters:
      ctx -
      AD_Process_DrillRule_ID -
      trxName -
      virtualColumns -
    • MProcessDrillRule

      public MProcessDrillRule(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
    • MProcessDrillRule

      public MProcessDrillRule(MProcessDrillRule copy)
      Copy constructor
      Parameters:
      copy -
    • MProcessDrillRule

      public MProcessDrillRule(Properties ctx, MProcessDrillRule copy)
      Copy constructor
      Parameters:
      ctx -
      copy -
    • MProcessDrillRule

      public MProcessDrillRule(Properties ctx, MProcessDrillRule copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • get

      public static MProcessDrillRule get(Properties ctx, int AD_Process_DrillRule_ID)
      Get MProcessDrillRule Cached(Immutable)
      Parameters:
      ctx -
      AD_Process_DrillRule_ID -
      Returns:
      MProcessDrillRule or null
    • get

      public static MProcessDrillRule get(Properties ctx, int AD_Process_DrillRule_ID, String trxName)
      Get MProcessDrillRule Cached(Immutable)
      Parameters:
      ctx -
      AD_Process_DrillRule_ID -
      trxName -
      Returns:
      MProcessDrillRule or null
    • getByTable

      public static MProcessDrillRule[] getByTable(Properties ctx, int AD_Table_ID, String trxName)
      Get array of MProcessDrillRule by Table
      Parameters:
      ctx -
      AD_Table_ID -
      trxName -
      Returns:
      array of MProcessDrillRule
    • getByColumnName

      public static MProcessDrillRule[] getByColumnName(Properties ctx, String columnName, String trxName)
      Get array of MProcessDrillRule by Column Name
      Parameters:
      ctx -
      columnName -
      trxName -
      Returns:
      array of MProcessDrillRule
    • 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
    • getParameters

      public MProcessDrillRulePara[] getParameters(boolean reload)
      Get Process Drill Rule Parameters
      Parameters:
      reload - true to reload from DB
      Returns:
      process drill rule parameters
    • markImmutable

      public PO markImmutable()
      Description copied from interface: ImmutablePOSupport
      mark PO as immutable
      Specified by:
      markImmutable in interface ImmutablePOSupport
      Returns:
      PO
    • hasMandatoryProcessPara

      public boolean hasMandatoryProcessPara()
      Is associated process (AD_Process_ID) has at least one mandatory process parameter
      Returns:
      boolean true if associated process (AD_Process_ID) has at least one mandatory process parameter
    • validate

      public void validate()
      Validate Drill Rule - set IsValid