Class MPInstancePara

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

public class MPInstancePara extends X_AD_PInstance_Para
Process Instance Parameter Model
Version:
$Id: MPInstancePara.java,v 1.3 2006/07/30 00:58:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MPInstancePara

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

      public MPInstancePara(Properties ctx, int ignored, String trxName)
      Parameters:
      ctx - context
      ignored - ignored
      trxName - transaction
    • MPInstancePara

      public MPInstancePara(Properties ctx, int AD_PInstance_ID, int SeqNo)
      Parent Constructor
      Parameters:
      ctx -
      AD_PInstance_ID - id
      SeqNo - sequence
    • MPInstancePara

      public MPInstancePara(MPInstance instance, int SeqNo)
      Parent Constructor
      Parameters:
      instance - instance
      SeqNo - sequence
    • MPInstancePara

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

    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_PInstance_Para
      Returns:
      info
    • setP_Number

      public void setP_Number(int P_Number)
      Set P_Number
      Parameters:
      P_Number - no
    • setP_Number

      public void setP_Number(Integer P_Number)
      Set P_Number
      Parameters:
      P_Number - no
    • setP_Number_To

      public void setP_Number_To(int P_Number_To)
      Set P_Number To
      Parameters:
      P_Number_To - no to
    • setP_Number_To

      public void setP_Number_To(Integer P_Number_To)
      Set P_Number To
      Parameters:
      P_Number_To - no to
    • setParameter

      public void setParameter(String parameterName, String stringParameter)
      Set String Parameter
      Parameters:
      parameterName - name
      stringParameter - value
    • setParameter

      public void setParameter(String parameterName, BigDecimal bdParameter)
      Set Number Parameter
      Parameters:
      parameterName - name
      bdParameter - value
    • setParameter

      public void setParameter(String parameterName, int iParameter)
      Set Number Parameter
      Parameters:
      parameterName - name
      iParameter - value
    • setParameter

      public void setParameter(String parameterName, Timestamp tsParameter)
      Set Date Parameter
      Parameters:
      parameterName - name
      tsParameter - value
    • setParameter

      public void setParameter(String parameterName, boolean boolParameter)
      Set Boolean Parameter
      Parameters:
      parameterName - name
      boolParameter - value
    • getDisplayType

      public int getDisplayType()
      Returns:
      Display type
    • equalParameter

      public boolean equalParameter(MPInstancePara param)
      Parameters:
      param -
      Returns:
      true if param is equal to this instance parameter record
    • getOrCreate

      public static MPInstancePara getOrCreate(Properties ctx, int AD_PInstance_ID, int SeqNo)
      Get existing AD_PInstance_Para record or create a new one if not found
      Parameters:
      ctx -
      AD_PInstance_ID -
      SeqNo -
      Returns:
      MPInstancePara