Class MPInstancePara

    • Constructor Detail

      • MPInstancePara

        public MPInstancePara​(Properties ctx,
                              int ignored,
                              String trxName)
        Persistence Constructor
        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 Detail

      • 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)
      • 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 -