Class X_M_Promotion

java.lang.Object
org.compiere.model.PO
org.compiere.model.X_M_Promotion
All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_M_Promotion, I_Persistent, Evaluatee
Direct Known Subclasses:
MPromotion

public class X_M_Promotion extends PO implements I_M_Promotion, I_Persistent
Generated Model for M_Promotion
Version:
Release 11 - $Id$
Author:
iDempiere (generated)
See Also:
  • Constructor Details

    • X_M_Promotion

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

      public X_M_Promotion(Properties ctx, int M_Promotion_ID, String trxName, String... virtualColumns)
      Standard Constructor
    • X_M_Promotion

      public X_M_Promotion(Properties ctx, String M_Promotion_UU, String trxName)
      Standard Constructor
    • X_M_Promotion

      public X_M_Promotion(Properties ctx, String M_Promotion_UU, String trxName, String... virtualColumns)
      Standard Constructor
    • X_M_Promotion

      public X_M_Promotion(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
  • Method Details

    • 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:
      Meta data of PO
    • toString

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

      public I_C_Campaign getC_Campaign() throws RuntimeException
      Specified by:
      getC_Campaign in interface I_M_Promotion
      Throws:
      RuntimeException
    • 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
    • getM_Promotion_ID

      public int getM_Promotion_ID()
      Get Promotion.
      Specified by:
      getM_Promotion_ID in interface I_M_Promotion
      Returns:
      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
    • getM_Promotion_UU

      public String getM_Promotion_UU()
      Get M_Promotion_UU.
      Specified by:
      getM_Promotion_UU in interface I_M_Promotion
      Returns:
      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