com.ibm.commerce.emarketing.engine

Class PoolIdAndCode

  • java.lang.Object
    • com.ibm.commerce.emarketing.engine.PoolIdAndCode


  • public class PoolIdAndCode
    extends java.lang.Object
    This class is used to represent a unique promotion code found in the PX_CDPOOL database table.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PoolIdAndCode(java.lang.Long promoCodePoolId, java.lang.String promoCode)
      This constructor creates a PoolIdAndCode object from a promotion code pool ID and the associated promotion code.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getPromotionCode()
      This method returns the promotion code.
      java.lang.Long getPromotionCodePoolId()
      This method returns the promotion code pool ID.
      java.lang.String toString()
      Returns a String representation suitable for printing in debug traces.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PoolIdAndCode

        public PoolIdAndCode(java.lang.Long promoCodePoolId,
                             java.lang.String promoCode)
        This constructor creates a PoolIdAndCode object from a promotion code pool ID and the associated promotion code.
        Parameters:
        promoCodePoolId - The promotion code pool ID.
        promoCode - The promotion code.
    • Method Detail

      • getPromotionCode

        public java.lang.String getPromotionCode()
        This method returns the promotion code.
        Returns:
        The promotion code.
      • getPromotionCodePoolId

        public java.lang.Long getPromotionCodePoolId()
        This method returns the promotion code pool ID.
        Returns:
        The promotion code pool ID.
      • toString

        public java.lang.String toString()
        Returns a String representation suitable for printing in debug traces.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a String representation suitable for printing in debug traces.