public class CartLine extends JDBCObject<CartLine>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
LOWVAL_RPG_DATE, LOWVAL_RPG_TIME, STATUS_ACTIVE, STATUS_BLANK, STATUS_CANCELED, STATUS_DELETED, STATUS_INACTIVE, STATUS_PENDING
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
CartLine()
Constructs a
CartLine object with all field values set to
null . |
Modifier and Type | Method and Description |
---|---|
private java.math.BigDecimal |
calcExtendedAmount(int qty,
java.math.BigDecimal price)
Calculates extended amount based on decimal math and sets precision
and rounding mode based on installation properties.
|
java.lang.String |
getCartId()
Returns the shopping cart or favorite items id.
|
java.lang.String |
getComments()
Returns the comments.
|
java.lang.String |
getContractNumber()
Returns the contract number.
|
java.math.BigDecimal |
getExtendedAmount()
(not persisted) Returns the extended amount for this line.
|
java.math.BigDecimal |
getExtendedQuoteAmount()
(not persisted) Returns the extended quote amount for this line.
|
int |
getLineNumber()
Returns the line number within the shopping cart or favorite items.
|
int |
getOrderQuantity()
Returns the line item quantity.
|
UnitMeasure |
getOrderUom()
Returns the order unit of measure object.
|
java.lang.String |
getOrderUomCode()
Returns the order unit of measure code.
|
java.math.BigDecimal |
getOrderUomPrice()
(not persisted) Returns the order unit of measure price for this line.
|
Select |
getOrderUomSelect()
(not persisted) Returns the order unit of measure html select for this line.
|
java.math.BigDecimal |
getPriceOverride()
Returns the price override amount.
|
java.lang.String |
getPriceOverrideStr()
Returns the price override amount.
|
UnitMeasure |
getPriceUom()
Returns the price unit of measure object.
|
java.lang.String |
getPriceUomCode()
Returns the price unit of measure code.
|
java.math.BigDecimal |
getPriceUomPrice()
(not persisted) Returns the price unit of measure price for this line.
|
Select |
getPriceUomSelect()
(not persisted) Returns the price unit of measure html select for this line.
|
Product |
getProduct()
Returns the product object.
|
java.lang.String |
getProductCode()
Returns the product code.
|
java.lang.String |
getProductUomCode()
Returns the product unit of measure code.
|
java.math.BigDecimal |
getQuotePrice()
(not persisted) Returns the quoted price for this line.
|
java.util.Date |
getReqShipDate()
Returns the requested ship date.
|
java.lang.String |
getStatus()
(not persisted) Returns the status code.
|
java.math.BigDecimal |
getUnitPrice()
Returns the unit price for this line.
|
void |
setCartId(java.lang.String value)
Sets the shopping cart or favorite items id.
|
void |
setComments(java.lang.String value)
Sets the comments.
|
void |
setContractNumber(java.lang.String value)
Sets the contract number.
|
void |
setExtendedQuoteAmount(java.math.BigDecimal value)
(not persisted) Sets the extended quote amount for this line.
|
void |
setExtendedQuoteAmount(int qty,
java.math.BigDecimal price)
(not persisted) Sets the extended quote amount for this line.
|
void |
setLineNumber(int value)
Sets the line number within the shopping cart or favorite items.
|
void |
setOrderQuantity(int value)
Sets the line item quantity.
|
void |
setOrderUom(UnitMeasure value)
Sets the order unit of measure object.
|
private void |
setOrderUomCode(java.lang.String value)
Sets the order unit of measure code.
|
void |
setOrderUomPrice(java.math.BigDecimal value)
(not persisted) Sets the order unit of measure price for this line.
|
void |
setOrderUomSelect(Select value)
(not persisted) Sets the order unit of measure html select for this line.
|
void |
setPriceOverride(java.math.BigDecimal value)
Sets the price override amount.
|
void |
setPriceUom(UnitMeasure value)
Sets the price unit of measure object.
|
private void |
setPriceUomCode(java.lang.String value)
Sets the price unit of measure code.
|
void |
setPriceUomPrice(java.math.BigDecimal value)
(not persisted) Sets the price unit of measure price for this line.
|
void |
setPriceUomSelect(Select value)
(not persisted) Sets the price unit of measure html select for this line.
|
void |
setProduct(Product value)
Sets the product object.
|
private void |
setProductCode(java.lang.String value)
Sets the product code.
|
private void |
setProductUomCode(java.lang.String value)
Sets the product unit of measure code.
|
void |
setQuotePrice(java.math.BigDecimal value)
(not persisted) Sets the quoted price for this line.
|
void |
setReqShipDate(java.util.Date value)
Sets the requested ship date.
|
void |
setStatus(java.lang.String value)
(not persisted) Sets the status code.
|
after, before, compareTo, equals, fmtStatus, fmtStatus, getObjectStatus, hashKey, setObjectStatus
cloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArray
private static final long serialVersionUID
public CartLine()
CartLine
object with all field values set to
null
.public java.lang.String getCartId()
public void setCartId(java.lang.String value)
value
- (String) The shopping cart or favorite items id.public int getLineNumber()
public void setLineNumber(int value)
value
- (int) The line number within the shopping cart or
favorite items.public Product getProduct()
public void setProduct(Product value)
value
- (Product) The product object.public java.lang.String getProductCode()
private void setProductCode(java.lang.String value)
value
- (String) The product code.public java.lang.String getProductUomCode()
private void setProductUomCode(java.lang.String value)
value
- (String) The product unit of measure code.public int getOrderQuantity()
public void setOrderQuantity(int value)
value
- (int) The line item quantity.public UnitMeasure getOrderUom()
public void setOrderUom(UnitMeasure value)
value
- (UnitMeasure) The order unit of measure object.public java.lang.String getOrderUomCode()
private void setOrderUomCode(java.lang.String value)
value
- (String) The order unit of measure code.public java.math.BigDecimal getOrderUomPrice()
public void setOrderUomPrice(java.math.BigDecimal value)
value
- (BigDecimal) - The order unit of measure price.public Select getOrderUomSelect()
null
if the select has not yet been created for this line.public void setOrderUomSelect(Select value)
value
- (Select) - The order unit of measure html select.public java.math.BigDecimal getPriceOverride()
null
if no
price override exists.public java.lang.String getPriceOverrideStr()
public void setPriceOverride(java.math.BigDecimal value)
value
- (BigDecimal) The price override amount.public UnitMeasure getPriceUom()
public void setPriceUom(UnitMeasure value)
value
- (UnitMeasure) The price unit of measure object.public java.lang.String getPriceUomCode()
private void setPriceUomCode(java.lang.String value)
value
- (String) The price unit of measure code.public java.math.BigDecimal getPriceUomPrice()
public void setPriceUomPrice(java.math.BigDecimal value)
value
- (BigDecimal) - The price unit of measure price.public Select getPriceUomSelect()
null
if the select has not yet been created for this line.public void setPriceUomSelect(Select value)
value
- (Select) - The price unit of measure html select.public java.util.Date getReqShipDate()
public void setReqShipDate(java.util.Date value)
value
- (java.util.Date) The requested ship date.public java.lang.String getContractNumber()
public void setContractNumber(java.lang.String value)
value
- (String) The contract number.public java.lang.String getComments()
public void setComments(java.lang.String value)
value
- (String) The comments.public java.math.BigDecimal getQuotePrice()
public void setQuotePrice(java.math.BigDecimal value)
value
- (BigDecimal) The quoted price.public java.math.BigDecimal getUnitPrice()
public java.math.BigDecimal getExtendedAmount()
public java.math.BigDecimal getExtendedQuoteAmount()
public void setExtendedQuoteAmount(java.math.BigDecimal value)
value
- (BigDecimal) - The extended quote amount.public void setExtendedQuoteAmount(int qty, java.math.BigDecimal price)
qty
- (int) - The quantity to use for the extension.price
- (BigDecimal) - The price to use for the extension.private java.math.BigDecimal calcExtendedAmount(int qty, java.math.BigDecimal price)
qty
- (int) The quantity.price
- (BigDecimal) The price.public java.lang.String getStatus()
public void setStatus(java.lang.String value)
value
- (String) The status code.