|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.commerce.ebusiness.price.quote.LineItem
@Deprecated public class LineItem
The LineItem class represents some quantity of a ProductItem. The class obtains the base and msrp prices from the ProductItem. LineAdjustment objects may be added to the LineItem to adjust the unit price of some sub-quantity of the LineItem. Each LineAdjustment will have a single detail describing the adjustment.
Quote
,
ProductItem
,
LineAdjustment
,
OrderAdjustment
,
AdjustmentDetail
,
AdjustmentType
,
QuoteFactory
,
Money
,
Serialized FormConstructor Summary | |
---|---|
protected |
LineItem()
Deprecated Constructs a new empty LineItem. |
|
LineItem(Quote quote,
ProductItem product,
int qty)
Deprecated Constructs a new LineItem for the Quote specified and representing a quantity of the ProductItem specified. |
Method Summary | |
---|---|
protected void |
addAdjustment(int qty,
AdjustmentDetail detail)
Deprecated Add a LineAdjustment to the LineItem with the specified AdjustmentDetail. |
protected void |
addAdjustment(int seqNumber,
int qty,
AdjustmentDetail detail)
Deprecated Add a LineAdjustment to the LineItem with the specified AdjustmentDetail. |
List |
getAdjustments()
Deprecated Returns the List of LineAdjustments for this LineItem. |
Money |
getBasePrice()
Deprecated Returns the base unit price for this item. |
String |
getCurrency()
Deprecated Returns the currency for this adjustment. |
Money |
getMsrp()
Deprecated Returns the manufacturers suggested retail price unit price for this item. |
ProductItem |
getProductItem()
Deprecated Returns the ProductItem associated with this LineItem. |
int |
getQty()
Deprecated Returns the quantity of the ProductItem represented by this LineItem. |
Quote |
getQuote()
Deprecated returns the Quote object for this LineItem |
Money |
getTotal()
Deprecated Returns the total price for this LineItem. |
long |
getUID()
Deprecated returns the unique numeric identifier for the LineItem. |
protected static void |
resetSeqNumber()
Deprecated reset sequence number |
void |
set(Quote quote,
ProductItem product,
int qty)
Deprecated Initializes the LineItem for the Quote specified and representing a quantity of the ProductItem specified. |
String |
toString()
Deprecated Provides a string representation for this LineItem. |
static String |
toString(List list)
Deprecated Provides a string representation for a List of LineItems. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected LineItem()
public LineItem(Quote quote, ProductItem product, int qty) throws QuoteException
quote
- the Quote object this LineItem is part of.product
- the ProductItem associated with this LineItem.qty
- the quantity of the ProductItem represented by
this LineItem.
QuoteException
ProductItem
Method Detail |
---|
protected static void resetSeqNumber()
public void set(Quote quote, ProductItem product, int qty) throws QuoteException
quote
- the Quote object this LineItem is part of.product
- the ProductItem associated with this LineItem.qty
- the quantity of the ProductItem represented by
this LineItem.
QuoteException
ProductItem
public final int getQty()
public final ProductItem getProductItem()
ProductItem
public final Quote getQuote()
Quote
public List getAdjustments()
LineAdjustment
public final Money getBasePrice()
Money
,
ProductItem
public final Money getMsrp()
Money
,
ProductItem
public Money getTotal()
Money
public final long getUID()
public final String getCurrency()
protected void addAdjustment(int qty, AdjustmentDetail detail) throws QuoteException
qty
- the quantity of the item to adjust.aDetail
- an AdjustmentDetail.
QuoteException
LineAdjustment
,
AdjustmentDetail
,
Quote
protected void addAdjustment(int seqNumber, int qty, AdjustmentDetail detail) throws QuoteException
seqNumber
- the sequence number for this adjustment.qty
- the quantity of the item to adjust.aDetail
- an AdjustmentDetail.
QuoteException
LineAdjustment
,
AdjustmentDetail
,
Quote
public String toString()
toString
in class Object
public static final String toString(List list)
|
Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |