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 aPDiscountSharingItemData
with the specified data base indexindex
and charge sharing FListsharing
.PDiscountSharingItemData
(int index, FList discountFlist, FList extraResultFlist) Constructs aPSharingItemData
with the specified data base indexindex
and discount sharing FListsharing
.PDiscountSharingItemData
(Poid sharingPoid, Poid obj) Constructs aPDiscountSharingItemData
with the sharing poid and node location. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some otherPDiscountSharingItemData
is same as thisPDiscountSharingItemData
?Returns the offering obj for a discount.int
hashCode()
Returns a hash code for thisPDiscountSharingItemData
.void
setDiscInfoFromAccObj
(FList flist) void
setOfferingObj
(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 aPDiscountSharingItemData
with the sharing poid and node location. This constructor should be used only asHashMap
key.- Parameters:
sharingPoid
- Poid the discount poid.obj
- String the discounts Offering POID.
-
PDiscountSharingItemData
Constructs aPDiscountSharingItemData
with the specified data base indexindex
and 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 aPSharingItemData
with the specified data base indexindex
and 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 otherPDiscountSharingItemData
is same as thisPDiscountSharingItemData
?- Overrides:
equals
in classPSharingItemData
- 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 thisPDiscountSharingItemData
. The hash code for aPDiscountSharingItemData
object 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
-