public interface CommerceItemRelationship extends Relationship
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
double |
getAmount()
Returns the amount that this Relationship represents.
|
CommerceItem |
getCommerceItem()
Returns the CommerceItem reference.
|
long |
getQuantity()
Returns the quantity that this Relationship represents.
|
double |
getQuantityDerivedAsFloatingPoint()
This method will return a derived quantity value which this Relationship object represents.
|
double |
getQuantityWithFraction()
Returns the quantity that this Relationship represents.
|
long |
getReturnedQuantity()
Returns the returnedQuantity
|
double |
getReturnedQuantityDerivedAsFloatingPoint()
This method will return a derived returned quantity value which this Relationship object represents.
|
double |
getReturnedQuantityWithFraction()
Returns the returned quantity (with fraction)
|
int |
getState()
Returns the state
|
java.lang.String |
getStateDetail()
Returns the stateDetail
|
boolean |
isFractional()
This method will return a true if fractional quantity value is being used otherwise
it returns false, in case of non-fractional quantity.
|
void |
setAmount(double pAmount)
Sets the amount that this Relationship represents.
|
void |
setCommerceItem(CommerceItem pCommerceItem)
Sets the CommerceItem reference.
|
void |
setQuantity(long pQuantity)
Sets the quantity that this Relationship represents.
|
void |
setQuantityWithFraction(double pQuantityWithFraction)
Sets the quantity that this Relationship represents.
|
void |
setReturnedQuantity(long pReturnedQuantity)
Sets the returnedQuantity
|
void |
setReturnedQuantityWithFraction(double pReturnedQuantityWithFraction)
Sets the returned quantity (with fraction).
|
void |
setState(int pState)
Sets the state
|
void |
setStateDetail(java.lang.String pStateDetail)
Sets the stateDetail
|
getRelationshipClassType, getRelationshipType, setRelationshipClassType, setRelationshipType
getId
static final java.lang.String CLASS_VERSION
CommerceItem getCommerceItem()
void setCommerceItem(CommerceItem pCommerceItem)
int getState()
void setState(int pState)
java.lang.String getStateDetail()
void setStateDetail(java.lang.String pStateDetail)
long getQuantity()
void setQuantity(long pQuantity)
double getQuantityWithFraction()
void setQuantityWithFraction(double pQuantityWithFraction)
double getQuantityDerivedAsFloatingPoint()
It will decide upon the correct quantity value to return, returning the first non zero
value from the methods, getQuantityWithFraction()
, getQuantity()
, in that order.
The method should be used where there is a need to know the quantity of an item
but it is unknown to the caller as to which property (getQuantityWithFraction()
or
getQuantity()
holds the value.
boolean isFractional()
boolean
valuelong getReturnedQuantity()
void setReturnedQuantity(long pReturnedQuantity)
void setReturnedQuantityWithFraction(double pReturnedQuantityWithFraction)
pReturnedQuantityWithFraction
- the (fractional) quantity to be returned.double getReturnedQuantityWithFraction()
double getReturnedQuantityDerivedAsFloatingPoint()
It will decide upon the correct returned quantity value to return, returning the first non zero
value from the methods, getReturnedQuantityWithFraction()
, getReturnedQuantity()
, in that order.
The method should be used where there is a need to know the returned quantity of an item
but it is unknown to the caller as to which property (getReturnedQuantityWithFraction()
or
getReturnedQuantity()
holds the value.
double getAmount()
void setAmount(double pAmount)