com.bea.commerce.ebusiness.price.engine.pool
Class ItemPoolImpl
java.lang.Object
com.bea.commerce.ebusiness.price.engine.pool.ItemPoolImpl
- All Implemented Interfaces
- ItemPool, Pool
public class ItemPoolImpl
- extends Object
- implements ItemPool
Represents a collection of PoolObject(s). The ItemPoolImpl
interface provides methods for querying the underlying objects
and also to remove objects from the working collection.
Method Summary |
void |
adjust(List poolObjects,
AdjustmentDetail aDetail)
|
void |
adjust(PoolObject object,
AdjustmentDetail aDetail)
|
static String |
catMapToString(Map map,
int size,
int type)
|
PoolQuery |
getByPrice(PoolQuery query)
Perform the query as specified by the query object passed in and
return the query object with the results added. |
String |
getCurrency()
|
Map |
getCurrentMap()
Returns the set of objects that make up the pool. |
int |
getCurrentSize()
|
AdjustmentDetail |
getDetail(AdjustmentType type,
Money initialPrice,
Money endPrice,
String computation,
String reason,
Object discountID)
|
Quote |
getQuote()
|
static String |
itemMapToString(Map map)
|
static String |
mapToString(Map map)
|
static String |
productItemListToString(List list)
|
void |
remove(Iterator poolObjects)
|
void |
remove(PoolObject poolObject)
|
void |
set(ItemObjectFactory factory,
com.bea.commerce.ebusiness.price.service.internal.PricingContext context,
Quote quote)
|
void |
set(com.bea.commerce.ebusiness.price.service.internal.PricingContext context,
Quote quote)
|
static String |
skuMapToString(Map map,
int size,
int type)
|
String |
toString()
|
String |
toString(int type)
|
SHORT
public static final int SHORT
- See Also
- Constants Summary
LONG
public static final int LONG
- See Also
- Constants Summary
INIT_MAP_SIZE
public static final int INIT_MAP_SIZE
- See Also
- Constants Summary
ItemPoolImpl
public ItemPoolImpl(ItemObjectFactory factory)
ItemPoolImpl
public ItemPoolImpl(ItemObjectFactory factory,
com.bea.commerce.ebusiness.price.service.internal.PricingContext context,
Quote quote)
throws RemoteException,
CatalogFinderException,
CatalogException
- Throws
RemoteException
CatalogFinderException
CatalogException
set
public void set(com.bea.commerce.ebusiness.price.service.internal.PricingContext context,
Quote quote)
throws RemoteException,
CatalogFinderException,
CatalogException
- Throws
RemoteException
CatalogFinderException
CatalogException
set
public void set(ItemObjectFactory factory,
com.bea.commerce.ebusiness.price.service.internal.PricingContext context,
Quote quote)
throws RemoteException,
CatalogFinderException,
CatalogException
- Throws
RemoteException
CatalogFinderException
CatalogException
remove
public void remove(Iterator poolObjects)
- Specified by:
remove
in interface Pool
- Parameters
List
- a set of PoolObjects to be removed from the collection.- See Also
PoolObject
remove
public void remove(PoolObject poolObject)
- Specified by:
remove
in interface Pool
- Parameters
PoolObject
- the object to be removed from the collection.- See Also
PoolObject
getCurrentSize
public int getCurrentSize()
- Specified by:
getCurrentSize
in interface ItemPool
getQuote
public Quote getQuote()
- Specified by:
getQuote
in interface ItemPool
getCurrency
public String getCurrency()
- Specified by:
getCurrency
in interface Pool
getDetail
public AdjustmentDetail getDetail(AdjustmentType type,
Money initialPrice,
Money endPrice,
String computation,
String reason,
Object discountID)
- Specified by:
getDetail
in interface Pool
getByPrice
public PoolQuery getByPrice(PoolQuery query)
- Perform the query as specified by the query object passed in and
return the query object with the results added. If the
query is satisfied the list of reply sets must have a 1 to 1
correspondence between each query spec for the qualifier or target.
- Specified by:
getByPrice
in interface ItemPool
adjust
public void adjust(PoolObject object,
AdjustmentDetail aDetail)
- Specified by:
adjust
in interface Pool
adjust
public void adjust(List poolObjects,
AdjustmentDetail aDetail)
- Specified by:
adjust
in interface Pool
getCurrentMap
public Map getCurrentMap()
- Description copied from interface:
ItemPool
- Returns the set of objects that make up the pool.
- Specified by:
getCurrentMap
in interface ItemPool
- Returns
- List returns the collection of ItemPoolObjects that make up the pool.
- See Also
ItemObject
toString
public String toString()
- Overrides:
toString
in class Object
toString
public String toString(int type)
- Specified by:
toString
in interface ItemPool
mapToString
public static String mapToString(Map map)
itemMapToString
public static String itemMapToString(Map map)
skuMapToString
public static String skuMapToString(Map map,
int size,
int type)
catMapToString
public static String catMapToString(Map map,
int size,
int type)
productItemListToString
public static String productItemListToString(List list)
Copyright © 2006 BEA Systems, Inc. All Rights Reserved