public class PDiscountSharingItemData extends PSharingItemData
description, eventRenderer, events, index, name, qty, selected, sharingPoid, validfrom, validto
Constructor and Description |
---|
PDiscountSharingItemData(int index,
FList sharing)
Constructs a
PDiscountSharingItemData with the
specified data base index index and
charge sharing FListsharing . |
PDiscountSharingItemData(int index,
FList discountFlist,
FList extraResultFlist)
Constructs a
PSharingItemData with the
specified data base index index and
discount sharing FListsharing . |
PDiscountSharingItemData(Poid sharingPoid,
Poid obj)
Constructs a
PDiscountSharingItemData with the
sharing poid and node location. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether some other
PDiscountSharingItemData
is same as this PDiscountSharingItemData ? |
Poid |
getOfferingObj()
Returns the offering obj for a discount.
|
int |
hashCode()
Returns a hash code for this
PDiscountSharingItemData . |
void |
setDiscInfoFromAccObj(FList flist) |
void |
setOfferingObj(Poid offeringPoid)
Sets the offering obj from the flist.
|
getDescription, getEventCount, getEventRenderer, getIndex, getName, getQty, getSharingPoid, getValidFrom, getValidTo, isSelected, setSelected, setUsageMap, sortEvents
public PDiscountSharingItemData(Poid sharingPoid, Poid obj)
PDiscountSharingItemData
with the
sharing poid and node location.
This constructor should be used only as HashMap
key.sharingPoid
- Poid the discount poid.obj
- String the discounts Offering POID.public PDiscountSharingItemData(int index, FList sharing) throws EBufException
PDiscountSharingItemData
with the
specified data base index index
and
charge sharing FListsharing
.index
- int the index at databasesharing
- FList the charge sharing flistEBufException
public PDiscountSharingItemData(int index, FList discountFlist, FList extraResultFlist) throws EBufException
PSharingItemData
with the
specified data base index index
and
discount sharing FListsharing
.
This is exclusively for Discount Sharing.index
- int the data base array indexdiscountFlist
- FList the discount sharing flistextraResultFlist
- FList the discount sharing extra result flistEBufException
public boolean equals(Object obj)
PDiscountSharingItemData
is same as this PDiscountSharingItemData
?equals
in class PSharingItemData
obj
- Object the reference object with which to comparetrue
if this object(sharing)
is the same as the obj(sharing)
argument; false
otherwise.public int hashCode()
PDiscountSharingItemData
.
The hash code for a PDiscountSharingItemData
object is computed as
(int)sharingPoid.getId()+ nodeLocation.hashCode()
public void setDiscInfoFromAccObj(FList flist) throws EBufException
EBufException
public Poid getOfferingObj()
public void setOfferingObj(Poid offeringPoid)
Poid
- offeringPoidEBufException
Copyright © 2003, 2023, Oracle and/or its affiliates.