com.ibm.commerce.order.commands

Class CatEntryPricesGroupKey

  • java.lang.Object
    • com.ibm.commerce.order.commands.CatEntryPricesGroupKey


  • public class CatEntryPricesGroupKey
    extends java.lang.Object
    Key class to a group of CatEntryPrices. It contains orderId, set of TradingAgreement Ids, set of offer Ids and catalog entry Id. It's used to group order items when calculating the price.
    • Field Summary

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

      Constructors 
      Constructor and Description
      CatEntryPricesGroupKey(java.lang.Long[] anTradingIds)
      Constructor for CatEntryPricesGroupKey.
      CatEntryPricesGroupKey(java.lang.Long anOrderId, java.lang.Long aCatEntryId, java.lang.Long[] offerIds, java.lang.Long[] tradingIds)
      Constructor for CatEntryPricesGroupKey.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object aObj)
      The method compares this key object to the specified object.
      java.lang.Long getCatalogEntryId()
      This methods gets the catalog entry Id.
      java.lang.Long[] getOfferIds()
      This methods gets the array of offer Id.
      java.lang.Long getOrderId()
      This methods gets the order Id.
      java.lang.Long[] getTradingIds()
      This methods gets the TradingAgreement IDs.
      int hashCode()
      This method returns the hash code of the key object.
      void setCatalogEntryId(java.lang.Long catalogEntryId)
      This method sets the catalog entry Id
      void setOfferIds(java.lang.Long[] iOfferIds)
      This method sets the offer Ids.
      void setOrderId(java.lang.Long orderId)
      This method sets the order Id.
      void setTradingIds(java.lang.Long[] iTradingIds)
      This method sets the Trading Agreement Ids.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

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

      • CatEntryPricesGroupKey

        public CatEntryPricesGroupKey(java.lang.Long[] anTradingIds)
        Constructor for CatEntryPricesGroupKey.
        Parameters:
        anTradingIds - the TradingAgreement IDs.
      • CatEntryPricesGroupKey

        public CatEntryPricesGroupKey(java.lang.Long anOrderId,
                                      java.lang.Long aCatEntryId,
                                      java.lang.Long[] offerIds,
                                      java.lang.Long[] tradingIds)
        Constructor for CatEntryPricesGroupKey.
        Parameters:
        anOrderId - order Id.
        aCatEntryId - catalog entry Id.
        offerIds - offer Ids.
        tradingIds - trading Ids.
    • Method Detail

      • getTradingIds

        public java.lang.Long[] getTradingIds()
        This methods gets the TradingAgreement IDs.
        Returns:
        the TradingAgreement IDs.
      • equals

        public boolean equals(java.lang.Object aObj)
        The method compares this key object to the specified object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        aObj - the CatEntryPricesGroupKey instance to compare with.
        Returns:
        true if they represent the same order Id, catalog entry Id, set of TradingAgreement IDs, set of offer IDs,.
        See Also:
        Object.equals(Object)
      • hashCode

        public int hashCode()
        This method returns the hash code of the key object. It equals sum of: hash code of order Id, hash code of catalog entry Id, hash code of Trading Agreement Ids set, and hash code of offer Ids set.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code.
        See Also:
        Object.hashCode()
      • getCatalogEntryId

        public java.lang.Long getCatalogEntryId()
        This methods gets the catalog entry Id.
        Returns:
        the catalog entry Id.
      • setCatalogEntryId

        public void setCatalogEntryId(java.lang.Long catalogEntryId)
        This method sets the catalog entry Id
        Parameters:
        catalogEntryId - The iCatalogEntryId to set.
      • getOrderId

        public java.lang.Long getOrderId()
        This methods gets the order Id.
        Returns:
        iOrderId the order Id.
      • setOrderId

        public void setOrderId(java.lang.Long orderId)
        This method sets the order Id.
        Parameters:
        orderId - The order Id to set.
      • getOfferIds

        public java.lang.Long[] getOfferIds()
        This methods gets the array of offer Id.
        Returns:
        array of offer Id.
      • setOfferIds

        public void setOfferIds(java.lang.Long[] iOfferIds)
        This method sets the offer Ids.
        Parameters:
        iOfferIds - The isetOfferIds to set.
      • setTradingIds

        public void setTradingIds(java.lang.Long[] iTradingIds)
        This method sets the Trading Agreement Ids.
        Parameters:
        iTradingIds - The isetTradingIds to set.