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
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)
|
INIT_MAP_SIZE
public static final int INIT_MAP_SIZE
LONG
public static final int LONG
SHORT
public static final int SHORT
ItemPoolImpl
public ItemPoolImpl(ItemObjectFactory factory,
PricingContext context,
Quote quote)
ItemPoolImpl
public ItemPoolImpl(ItemObjectFactory factory)
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)