Class PDiscountSharingItemData

java.lang.Object
com.portal.app.cc.sharing.PSharingItemData
com.portal.app.cc.sharing.PDiscountSharingItemData

public class PDiscountSharingItemData extends PSharingItemData
This class stores all the data related to the Discount Sharing.
  • Constructor Details

    • PDiscountSharingItemData

      public PDiscountSharingItemData(Poid sharingPoid, Poid obj)
      Constructs a PDiscountSharingItemData with the sharing poid and node location. This constructor should be used only as HashMap key.
      Parameters:
      sharingPoid - Poid the discount poid.
      obj - String the discounts Offering POID.
    • PDiscountSharingItemData

      public PDiscountSharingItemData(int index, FList sharing) throws EBufException
      Constructs a PDiscountSharingItemData with the specified data base index index and charge sharing FListsharing.
      Parameters:
      index - int the index at database
      sharing - FList the charge sharing flist
      Throws:
      EBufException
    • PDiscountSharingItemData

      public PDiscountSharingItemData(int index, FList discountFlist, FList extraResultFlist) throws EBufException
      Constructs a PSharingItemData with the specified data base index index and discount sharing FListsharing. This is exclusively for Discount Sharing.
      Parameters:
      index - int the data base array index
      discountFlist - FList the discount sharing flist
      extraResultFlist - FList the discount sharing extra result flist
      Throws:
      EBufException
  • Method Details

    • equals

      public boolean equals(Object obj)
      Indicates whether some other PDiscountSharingItemData is same as this PDiscountSharingItemData?
      Overrides:
      equals in class PSharingItemData
      Parameters:
      obj - Object the reference object with which to compare
      Returns:
      boolean true if this object(sharing) is the same as the obj(sharing) argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code for this PDiscountSharingItemData. The hash code for a PDiscountSharingItemData object is computed as (int)sharingPoid.getId()+ nodeLocation.hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
    • setDiscInfoFromAccObj

      public void setDiscInfoFromAccObj(FList flist) throws EBufException
      Throws:
      EBufException
    • getOfferingObj

      public Poid getOfferingObj()
      Returns the offering obj for a discount. This will be used only for discount sharings.
      Returns:
      poid the discounts offering obj
    • setOfferingObj

      public void setOfferingObj(Poid offeringPoid)
      Sets the offering obj from the flist.
      Parameters:
      Poid - offeringPoid
      Throws:
      EBufException