# com.bea.commerce.ebusiness.price.engine.pool
OrderPoolImpl Class

public class OrderPoolImpl
extends `Object`
implements `OrderPool`

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`
  `OrderPoolImpl`

All Implemented Interfaces
  `OrderPool`, `Pool`

## Field Summary

`public static final `String`` | `cName` String
`public static final int` | `LONG` int
`public static final int` | `SHORT` int

## Constructor Summary

OrderPoolImpl()
OrderPoolImpl(`PricingContext` context, `Quote` quote)

## Method Summary

`public void` | `adjust`(`PoolObject` object, `AdjustmentDetail` aDetail) Adjust the price of a `PoolObject` as specified in the `AdjustmentDetail`.
`public void` | `adjust`(`List` poolObjects, `AdjustmentDetail` aDetail) Adjust the price of a `List` of `PoolObject` as specified in the `AdjustmentDetail`.
`public `OrderQuery`` | `getByPrice`(`OrderQuery` aQuery) Perform the query as specified by the query object passed in and return the query object with the results added.
`public `String`` | `getCurrency`()
`public int` | `getCurrentSize`()
`public `AdjustmentDetail`` | `getDetail`(`AdjustmentType` type, `Money` initialPrice, `Money` endPrice, `String` computation, `String` reason, `Object` discountID)
`public `Quote`` | `getQuote`()
`public void` | `remove`(`PoolObject` anObject)
`public void` | `remove`(`Iterator` poolObjects)
`public void` | `set`(`PricingContext` context, `Quote` quote)
`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.`OrderPool``
``getByPrice`, `getCurrentSize`, `getQuote`, `set`, `toString``

Methods from interface `com.bea.commerce.ebusiness.price.engine.pool.`Pool``
``adjust`, `adjust`, `getCurrency`, `getDetail`, `remove`, `remove``

## Field Detail

### cName

    public static final String cName

### LONG

    public static final int LONG

### SHORT

    public static final int SHORT

## Constructor Detail

### OrderPoolImpl

    public OrderPoolImpl()

### OrderPoolImpl

    public OrderPoolImpl(PricingContext context,
                         Quote quote)

## Method Detail

### adjust(PoolObject, AdjustmentDetail) Method

    public void adjust(PoolObject object,
                       AdjustmentDetail aDetail)

Adjust the price of a `PoolObject` as specified in the `AdjustmentDetail`.

#### Parameters

object
  the `PoolObject` to adjust the price of.

aDetail
  the `AdjustmentDetail` to apply to the object.

### adjust(List, AdjustmentDetail) Method

    public void adjust(List poolObjects,
                       AdjustmentDetail aDetail)

Adjust the price of a `List` of `PoolObject` as specified in the `AdjustmentDetail`.

#### Parameters

poolObjects
  a `List` of `PoolObject`s to adjust.

aDetail
  the `AdjustmentDetail` to apply to the objects.

### getByPrice(OrderQuery) Method

    public OrderQuery getByPrice(OrderQuery aQuery)

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()

### 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()

### remove(PoolObject) Method

    public void remove(PoolObject anObject)

#### Parameters

anObject
  the object to be removed from the collection.

#### Returns

void

Related Topics

``OrderObject``

### 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``

### set(PricingContext, Quote) Method

    public void set(PricingContext context,
                    Quote quote)

### toString() Method

    public String toString()

Overrides
  `Object.toString()`

### toString(int) Method

    public String toString(int type)