Package com.portal.app.cc.sharing
Class PDiscountSharingItemData
java.lang.Object
com.portal.app.cc.sharing.PSharingItemData
com.portal.app.cc.sharing.PDiscountSharingItemData
This class stores all the data related to the Discount Sharing.
-
Field Summary
Fields inherited from class com.portal.app.cc.sharing.PSharingItemData
description, eventRenderer, events, index, name, qty, selected, sharingPoid, validfrom, validto -
Constructor Summary
ConstructorsConstructorDescriptionPDiscountSharingItemData(int index, FList sharing) Constructs aPDiscountSharingItemDatawith the specified data base indexindexand charge sharing FListsharing.PDiscountSharingItemData(int index, FList discountFlist, FList extraResultFlist) Constructs aPSharingItemDatawith the specified data base indexindexand discount sharing FListsharing.PDiscountSharingItemData(Poid sharingPoid, Poid obj) Constructs aPDiscountSharingItemDatawith the sharing poid and node location. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some otherPDiscountSharingItemDatais same as thisPDiscountSharingItemData?Returns the offering obj for a discount.inthashCode()Returns a hash code for thisPDiscountSharingItemData.voidsetDiscInfoFromAccObj(FList flist) voidsetOfferingObj(Poid offeringPoid) Sets the offering obj from the flist.Methods inherited from class com.portal.app.cc.sharing.PSharingItemData
getDescription, getEventCount, getEventRenderer, getIndex, getName, getQty, getSharingPoid, getValidFrom, getValidTo, isSelected, setSelected, setUsageMap, sortEvents
-
Constructor Details
-
PDiscountSharingItemData
Constructs aPDiscountSharingItemDatawith the sharing poid and node location. This constructor should be used only asHashMapkey.- Parameters:
sharingPoid- Poid the discount poid.obj- String the discounts Offering POID.
-
PDiscountSharingItemData
Constructs aPDiscountSharingItemDatawith the specified data base indexindexand charge sharing FListsharing.- Parameters:
index- int the index at databasesharing- FList the charge sharing flist- Throws:
EBufException
-
PDiscountSharingItemData
public PDiscountSharingItemData(int index, FList discountFlist, FList extraResultFlist) throws EBufException Constructs aPSharingItemDatawith the specified data base indexindexand discount sharing FListsharing. This is exclusively for Discount Sharing.- Parameters:
index- int the data base array indexdiscountFlist- FList the discount sharing flistextraResultFlist- FList the discount sharing extra result flist- Throws:
EBufException
-
-
Method Details
-
equals
Indicates whether some otherPDiscountSharingItemDatais same as thisPDiscountSharingItemData?- Overrides:
equalsin classPSharingItemData- Parameters:
obj- Object the reference object with which to compare- Returns:
- boolean
trueif this object(sharing) is the same as the obj(sharing) argument;falseotherwise.
-
hashCode
public int hashCode()Returns a hash code for thisPDiscountSharingItemData. The hash code for aPDiscountSharingItemDataobject is computed as(int)sharingPoid.getId()+ nodeLocation.hashCode() -
setDiscInfoFromAccObj
- Throws:
EBufException
-
getOfferingObj
Returns the offering obj for a discount. This will be used only for discount sharings.- Returns:
- poid the discounts offering obj
-
setOfferingObj
Sets the offering obj from the flist.- Parameters:
Poid- offeringPoid- Throws:
EBufException
-