ItemPoolImpl Class

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

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.


Hierarchy
Object
  ItemPoolImpl
All Implemented Interfaces

ItemPool, Pool

Field Summary

public static final int
INIT_MAP_SIZE
int
public static final int
LONG
int
public static final int
SHORT
int
 

Constructor Summary

ItemPoolImpl(ItemObjectFactory factory, PricingContext context, Quote quote)

ItemPoolImpl(ItemObjectFactory factory)

 

Method Summary

public void
adjust(PoolObject object, AdjustmentDetail aDetail)
public void
adjust(List poolObjects, AdjustmentDetail aDetail)
public static String
catMapToString(Map map, int size, int type)
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.
public String
getCurrency()
public Map
getCurrentMap()
Returns the set of objects that make up the pool.
public int
getCurrentSize()
public AdjustmentDetail
getDetail(AdjustmentType type, Money initialPrice, Money endPrice, String computation, String reason, Object discountID)
public Quote
getQuote()
public static String
itemMapToString(Map map)
public static String
mapToString(Map map)
public static String
productItemListToString(List list)
public void
remove(Iterator poolObjects)
public void
remove(PoolObject poolObject)
public void
set(PricingContext context, Quote quote)
public void
set(ItemObjectFactory factory, PricingContext context, Quote quote)
public static String
skuMapToString(Map map, int size, int type)
public String
toString()
public String
toString(int type)
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
   
Methods from interface com.bea.commerce.ebusiness.price.engine.pool.ItemPool
getByPrice, getCurrentMap, getCurrentSize, getQuote, toString
 
Methods from interface com.bea.commerce.ebusiness.price.engine.pool.Pool
adjust, adjust, getCurrency, getDetail, remove, remove
 

Field Detail

INIT_MAP_SIZE

public static final int INIT_MAP_SIZE


LONG

public static final int LONG


SHORT

public static final int SHORT

 

Constructor Detail

ItemPoolImpl

public ItemPoolImpl(ItemObjectFactory factory, 
                    PricingContext context, 
                    Quote quote)

ItemPoolImpl

public ItemPoolImpl(ItemObjectFactory factory)
 

Method Detail

adjust(PoolObject, AdjustmentDetail) Method

public void adjust(PoolObject object, 
                   AdjustmentDetail aDetail)

adjust(List, AdjustmentDetail) Method

public void adjust(List poolObjects, 
                   AdjustmentDetail aDetail)

catMapToString(Map, int, int) Method

public static String catMapToString(Map map, 
                                    int size, 
                                    int type)

getByPrice(PoolQuery) Method

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.


getCurrency() Method

public String getCurrency()

getCurrentMap() Method

public Map getCurrentMap()
Description copied from ItemPool.getCurrentMap()
Returns the set of objects that make up the pool.

Returns

List returns the collection of ItemPoolObjects that make up the pool.

getCurrentSize() Method

public int getCurrentSize()

getDetail(AdjustmentType, Money, Money, String, String, Object) Method

public AdjustmentDetail getDetail(AdjustmentType type, 
                                  Money initialPrice, 
                                  Money endPrice, 
                                  String computation, 
                                  String reason, 
                                  Object discountID)

getQuote() Method

public Quote getQuote()

itemMapToString(Map) Method

public static String itemMapToString(Map map)

mapToString(Map) Method

public static String mapToString(Map map)

productItemListToString(List) Method

public static String productItemListToString(List list)

remove(Iterator) Method

public void remove(Iterator poolObjects)

Parameters

poolObjects
a set of PoolObjects to be removed from the collection.

Returns

void

Related Topics

PoolObject


remove(PoolObject) Method

public void remove(PoolObject poolObject)

Parameters

poolObject
the object to be removed from the collection.

Returns

void

Related Topics

PoolObject


set(PricingContext, Quote) Method

public void set(PricingContext context, 
                Quote quote)
throws RemoteException, CatalogFinderException, CatalogException

Exceptions

RemoteException
CatalogFinderException
CatalogException

set(ItemObjectFactory, PricingContext, Quote) Method

public void set(ItemObjectFactory factory, 
                PricingContext context, 
                Quote quote)
throws RemoteException, CatalogFinderException, CatalogException

Exceptions

RemoteException
CatalogFinderException
CatalogException

skuMapToString(Map, int, int) Method

public static String skuMapToString(Map map, 
                                    int size, 
                                    int type)

toString() Method

public String toString()
Overrides
Object.toString()

toString(int) Method

public String toString(int type)