Class MProcessPara

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

public class MProcessPara extends X_AD_Process_Para implements ImmutablePOSupport
Process Parameter Model
Version:
$Id: MProcessPara.java,v 1.3 2006/07/30 00:58:37 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Field Details

    • WINDOW_NO

      public static int WINDOW_NO
      Virtual Window No - 999
    • TAB_NO

      public static int TAB_NO
      Virtual Tab No - 0
  • Constructor Details

    • MProcessPara

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

      public MProcessPara(Properties ctx, int AD_Process_Para_ID, String trxName)
      Constructor
      Parameters:
      ctx - context
      AD_Process_Para_ID - id
      trxName - transaction
    • MProcessPara

      public MProcessPara(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
    • MProcessPara

      public MProcessPara(MProcess parent)
      Parent constructor
      Parameters:
      parent - process
    • MProcessPara

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

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

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

    • get

      public static MProcessPara get(int AD_Process_Para_ID)
      Get MProcessPara from Cache (immutable)
      Parameters:
      AD_Process_Para_ID - id
      Returns:
      MProcessPara
    • get

      public static MProcessPara get(Properties ctx, int AD_Process_Para_ID)
      Get MProcessPara from Cache (immutable)
      Parameters:
      ctx - context
      AD_Process_Para_ID - id
      Returns:
      MProcessPara
    • isLookup

      public boolean isLookup()
      Is this field a Lookup?.
      Returns:
      true if lookup field
    • loadLookup

      public void loadLookup()
      Load Lookup for column with lookup
    • getLookup

      public Lookup getLookup()
      Get Lookup for Parameter
      Returns:
      lookup or null
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_Process_Para
      Returns:
      info
    • copyFrom

      public void copyFrom(MProcessPara source)
      Copy settings from another process parameter and save
      Parameters:
      source -
    • 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
    • getReferenceTableName

      public String getReferenceTableName()
      Get reference table name for lookup and list field
      Returns:
      reference table name or null
    • markImmutable

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

      public static void validateUnknownParameter(int processId, ProcessInfoParameter para)
      Write in server log when an unexpected parameter is processed.
      If the parameter is defined in dictionary log at INFO level as a custom parameter.
      Otherwise log at SEVERE level as unknown parameter.
      Parameters:
      processId -
      para -