Class X_M_Promotion

    • Constructor Detail

      • X_M_Promotion

        public X_M_Promotion​(Properties ctx,
                             int M_Promotion_ID,
                             String trxName)
        Standard Constructor
    • Method Detail

      • get_AccessLevel

        protected int get_AccessLevel()
        AccessLevel
        Specified by:
        get_AccessLevel in class PO
        Returns:
        3 - Client - Org
      • initPO

        protected POInfo initPO​(Properties ctx)
        Load Meta Data
        Specified by:
        initPO in class PO
        Parameters:
        ctx - context
        Returns:
        POInfo
      • toString

        public String toString()
        Description copied from class: PO
        String representation
        Overrides:
        toString in class PO
        Returns:
        String representation
      • setC_Campaign_ID

        public void setC_Campaign_ID​(int C_Campaign_ID)
        Set Campaign.
        Specified by:
        setC_Campaign_ID in interface I_M_Promotion
        Parameters:
        C_Campaign_ID - Marketing Campaign
      • getC_Campaign_ID

        public int getC_Campaign_ID()
        Get Campaign.
        Specified by:
        getC_Campaign_ID in interface I_M_Promotion
        Returns:
        Marketing Campaign
      • setDescription

        public void setDescription​(String Description)
        Set Description.
        Specified by:
        setDescription in interface I_M_Promotion
        Parameters:
        Description - Optional short description of the record
      • getDescription

        public String getDescription()
        Get Description.
        Specified by:
        getDescription in interface I_M_Promotion
        Returns:
        Optional short description of the record
      • setM_Promotion_ID

        public void setM_Promotion_ID​(int M_Promotion_ID)
        Set Promotion.
        Specified by:
        setM_Promotion_ID in interface I_M_Promotion
        Parameters:
        M_Promotion_ID - Promotion
      • setM_Promotion_UU

        public void setM_Promotion_UU​(String M_Promotion_UU)
        Set M_Promotion_UU.
        Specified by:
        setM_Promotion_UU in interface I_M_Promotion
        Parameters:
        M_Promotion_UU - M_Promotion_UU
      • setName

        public void setName​(String Name)
        Set Name.
        Specified by:
        setName in interface I_M_Promotion
        Parameters:
        Name - Alphanumeric identifier of the entity
      • getName

        public String getName()
        Get Name.
        Specified by:
        getName in interface I_M_Promotion
        Returns:
        Alphanumeric identifier of the entity
      • getKeyNamePair

        public KeyNamePair getKeyNamePair()
        Get Record ID/ColumnName
        Returns:
        ID/ColumnName pair
      • setPromotionPriority

        public void setPromotionPriority​(int PromotionPriority)
        Set Relative Priority.
        Specified by:
        setPromotionPriority in interface I_M_Promotion
        Parameters:
        PromotionPriority - Which promotion should be apply to a product
      • getPromotionPriority

        public int getPromotionPriority()
        Get Relative Priority.
        Specified by:
        getPromotionPriority in interface I_M_Promotion
        Returns:
        Which promotion should be apply to a product