© 2005 BEA Systems, Inc.

com.bea.commerce.ebusiness.price.engine.pool
Class ItemObjectProxyImpl

java.lang.Object
  extended bycom.bea.commerce.ebusiness.price.engine.pool.ItemObjectProxyImpl
All Implemented Interfaces:
Comparable, ItemObject, PoolObject

public class ItemObjectProxyImpl
extends Object
implements ItemObject

This classes uses a LineItem object to get values for the pool object.

See Also:
LineItem

Field Summary
static String cName
           
 
Constructor Summary
ItemObjectProxyImpl()
           
ItemObjectProxyImpl(Pool pool, LineItem lineItem, int line, int position)
           
 
Method Summary
 int compareTo(Object obj)
          May throw ClassCastException if obj is not a ItemObjectProxyImpl.
 boolean equalLineItem(ItemObject object)
          returns true if the given object comes from the same LineItem.
 boolean equals(Object obj)
           
 Money getActualPrice()
          returns the current price of the object
 Money getBasePrice()
          Corresponds to ProductItem.getCurrentPrice()
 CategoryKey[] getCategoryKeys()
          Corresponds to ProductItem.XXXXX()
 CatalogItemKey getItemKey()
          Corresponds to ProductItem.getCatalogItemKey()
 LineItem getLineItem()
          used by the pool to adjust the underlying line item
 Money getMsrp()
          Corresponds to ProductItem.getMsrp()
 Pool getPool()
           
 String getUID()
          Returns the unique identifying string for this object.
 int hashCode()
           
 void set(Pool pool, LineItem lineItem, int line, int position)
           
 String toString()
           
static String toString(Iterator it, int size)
           
static String toString(List list)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cName

public static final String cName
See Also:
Constant Field Values
Constructor Detail

ItemObjectProxyImpl

public ItemObjectProxyImpl()

ItemObjectProxyImpl

public ItemObjectProxyImpl(Pool pool,
                           LineItem lineItem,
                           int line,
                           int position)
Method Detail

compareTo

public int compareTo(Object obj)
May throw ClassCastException if obj is not a ItemObjectProxyImpl.

Specified by:
compareTo in interface Comparable

equalLineItem

public boolean equalLineItem(ItemObject object)
Description copied from interface: ItemObject
returns true if the given object comes from the same LineItem.

Specified by:
equalLineItem in interface ItemObject

equals

public boolean equals(Object obj)

getActualPrice

public Money getActualPrice()
Description copied from interface: PoolObject
returns the current price of the object

Specified by:
getActualPrice in interface PoolObject
Returns:
Money a money object that represents the current price of the current.
See Also:
Money

getBasePrice

public Money getBasePrice()
Description copied from interface: ItemObject
Corresponds to ProductItem.getCurrentPrice()

Specified by:
getBasePrice in interface ItemObject
Returns:
Money a money object that represents the base price of the item.
See Also:
Money, ProductItem

getCategoryKeys

public CategoryKey[] getCategoryKeys()
Description copied from interface: ItemObject
Corresponds to ProductItem.XXXXX()

Specified by:
getCategoryKeys in interface ItemObject
Returns:
CategoryKey the key for the categor(ies) of this item.
See Also:
CategoryKey, ProductItem

getItemKey

public CatalogItemKey getItemKey()
Description copied from interface: ItemObject
Corresponds to ProductItem.getCatalogItemKey()

Specified by:
getItemKey in interface ItemObject
Returns:
CatalogItemKey the item key for this item.
See Also:
CatalogItemKey, ProductItem

getLineItem

public LineItem getLineItem()
used by the pool to adjust the underlying line item

Specified by:
getLineItem in interface ItemObject

getMsrp

public Money getMsrp()
Description copied from interface: ItemObject
Corresponds to ProductItem.getMsrp()

Specified by:
getMsrp in interface ItemObject
Returns:
Money a money object that represents the MSRP price of the item.
See Also:
Money, ProductItem

getPool

public Pool getPool()
Specified by:
getPool in interface PoolObject

getUID

public String getUID()
Description copied from interface: PoolObject
Returns the unique identifying string for this object.

Specified by:
getUID in interface PoolObject
Returns:
String unique identifying string for this PoolObject.

hashCode

public int hashCode()

set

public void set(Pool pool,
                LineItem lineItem,
                int line,
                int position)

toString

public String toString()

toString

public static String toString(Iterator it,
                              int size)

toString

public static String toString(List list)

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved