com.bea.commerce.ebusiness.price.quote
Class LineItem

java.lang.Object
  extended by com.bea.commerce.ebusiness.price.quote.LineItem
All Implemented Interfaces
Serializable

Deprecated See BEA Commerce product offering

@Deprecated
public class LineItem
extends Object
implements Serializable

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.

See Also
Quote, ProductItem, LineAdjustment, OrderAdjustment, AdjustmentDetail, AdjustmentType, QuoteFactory, Money, Serialized Form

Constructor Summary
protected LineItem()
          Deprecated See BEA Commerce product offering
  LineItem(Quote quote, ProductItem product, int qty)
          Deprecated See BEA Commerce product offering
 
Method Summary
protected  void addAdjustment(int qty, AdjustmentDetail detail)
          Deprecated See BEA Commerce product offering
protected  void addAdjustment(int seqNumber, int qty, AdjustmentDetail detail)
          Deprecated See BEA Commerce product offering
 List getAdjustments()
          Deprecated See BEA Commerce product offering
 Money getBasePrice()
          Deprecated See BEA Commerce product offering
 String getCurrency()
          Deprecated See BEA Commerce product offering
 Money getMsrp()
          Deprecated See BEA Commerce product offering
 ProductItem getProductItem()
          Deprecated See BEA Commerce product offering
 int getQty()
          Deprecated See BEA Commerce product offering
 Quote getQuote()
          Deprecated See BEA Commerce product offering
 Money getTotal()
          Deprecated See BEA Commerce product offering
 long getUID()
          Deprecated See BEA Commerce product offering
protected static void resetSeqNumber()
          Deprecated See BEA Commerce product offering
 void set(Quote quote, ProductItem product, int qty)
          Deprecated See BEA Commerce product offering
 String toString()
          Deprecated See BEA Commerce product offering
static String toString(List list)
          Deprecated See BEA Commerce product offering
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineItem

protected LineItem()
Deprecated See BEA Commerce product offering

Constructs a new empty LineItem. The new LineItem will not represent a ProductItem and will have a quantity of zero and base and msrp prices of zero. To be used this LineItem must be set with the set() method.


LineItem

public LineItem(Quote quote,
                ProductItem product,
                int qty)
         throws QuoteException
Deprecated See BEA Commerce product offering

Constructs a new LineItem for the Quote specified and representing a quantity of the ProductItem specified.

Parameters
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.
Throws
QuoteException
See Also
ProductItem
Method Detail

resetSeqNumber

protected static void resetSeqNumber()
Deprecated See BEA Commerce product offering

reset sequence number


set

public void set(Quote quote,
                ProductItem product,
                int qty)
         throws QuoteException
Deprecated See BEA Commerce product offering

Initializes the LineItem for the Quote specified and representing a quantity of the ProductItem specified.

Parameters
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.
Throws
QuoteException
See Also
ProductItem

getQty

public final int getQty()
Deprecated See BEA Commerce product offering

Returns the quantity of the ProductItem represented by this LineItem.


getProductItem

public final ProductItem getProductItem()
Deprecated See BEA Commerce product offering

Returns the ProductItem associated with this LineItem.

Returns
return the ProductItem for this LineItem, if the no argument constructor was used and the set() method was not called this method will return null.
See Also
ProductItem

getQuote

public final Quote getQuote()
Deprecated See BEA Commerce product offering

returns the Quote object for this LineItem

Returns
the Quote object for this LineItem
See Also
Quote

getAdjustments

public List getAdjustments()
Deprecated See BEA Commerce product offering

Returns the List of LineAdjustments for this LineItem.

Returns
List of LineAdjustments.
See Also
LineAdjustment

getBasePrice

public final Money getBasePrice()
Deprecated See BEA Commerce product offering

Returns the base unit price for this item.

Returns
Money object representing the base unit price for this item.
See Also
Money, ProductItem

getMsrp

public final Money getMsrp()
Deprecated See BEA Commerce product offering

Returns the manufacturers suggested retail price unit price for this item.

Returns
Money object representing the manufacturers suggested retail price unit price for this item.
See Also
Money, ProductItem

getTotal

public Money getTotal()
Deprecated See BEA Commerce product offering

Returns the total price for this LineItem. The total is computed by adding the unit prices for each quantity of the LineItem.

Returns
Money object representing the total price of the LineItem.
See Also
Money

getUID

public final long getUID()
Deprecated See BEA Commerce product offering

returns the unique numeric identifier for the LineItem. When LineItems are generated through the QuoteFactory the idnetifiers are guarnteed to be unique.


getCurrency

public final String getCurrency()
Deprecated See BEA Commerce product offering

Returns the currency for this adjustment. All money values for this adjustment are of this currency


addAdjustment

protected void addAdjustment(int qty,
                             AdjustmentDetail detail)
                      throws QuoteException
Deprecated See BEA Commerce product offering

Add a LineAdjustment to the LineItem with the specified AdjustmentDetail. The sequence number is obtained through the quote object.

Parameters
qty - the quantity of the item to adjust.
aDetail - an AdjustmentDetail.
Throws
QuoteException
See Also
LineAdjustment, AdjustmentDetail, Quote

addAdjustment

protected void addAdjustment(int seqNumber,
                             int qty,
                             AdjustmentDetail detail)
                      throws QuoteException
Deprecated See BEA Commerce product offering

Add a LineAdjustment to the LineItem with the specified AdjustmentDetail. The sequence number is obtained through the quote object.

Parameters
seqNumber - the sequence number for this adjustment.
qty - the quantity of the item to adjust.
aDetail - an AdjustmentDetail.
Throws
QuoteException
See Also
LineAdjustment, AdjustmentDetail, Quote

toString

public String toString()
Deprecated See BEA Commerce product offering

Provides a string representation for this LineItem. This method is intended to for debugging and may change at any time.

Overrides:
toString in class Object

toString

public static final String toString(List list)
Deprecated See BEA Commerce product offering

Provides a string representation for a List of LineItems. This method is intended to for debugging and may change at any time.



Copyright © 2006 BEA Systems, Inc. All Rights Reserved