Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      com.bea.commerce.ebusiness.price.engine.pool.OrderPoolImpl

All Implemented Interfaces:
  OrderPool, Pool

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.

Field Summary
`static String` | `cName`
`static int` | `LONG`
`static int` | `SHORT`

Constructor Summary
`OrderPoolImpl()`
`OrderPoolImpl(com.bea.commerce.ebusiness.price.service.internal.PricingContext context, Quote quote)`

Method Summary
`void` | `adjust(List poolObjects, AdjustmentDetail aDetail)` Adjust the price of a `List` of `PoolObject` as specified in the `AdjustmentDetail`.
`void` | `adjust(PoolObject object, AdjustmentDetail aDetail)` Adjust the price of a `PoolObject` as specified in the `AdjustmentDetail`.
`OrderQuery` | `getByPrice(OrderQuery aQuery)` Perform the query as specified by the query object passed in and return the query object with the results added.
`String` | `getCurrency()`
`int` | `getCurrentSize()`
`AdjustmentDetail` | `getDetail(AdjustmentType type, Money initialPrice, Money endPrice, String computation, String reason, Object discountID)`
`Quote` | `getQuote()`
`void` | `remove(Iterator poolObjects)`
`void` | `remove(PoolObject anObject)`
`void` | `set(com.bea.commerce.ebusiness.price.service.internal.PricingContext context, Quote quote)`
`String` | `toString()`
`String` | `toString(int type)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### cName

    public static final String cName

See Also:
  Constant Field Values

### LONG

    public static final int LONG

See Also:
  Constant Field Values

### SHORT

    public static final int SHORT

See Also:
  Constant Field Values

Constructor Detail

### OrderPoolImpl

    public OrderPoolImpl()

### OrderPoolImpl

    public OrderPoolImpl(com.bea.commerce.ebusiness.price.service.internal.PricingContext context,
                         Quote quote)

Method Detail

### adjust

    public void adjust(List poolObjects,
                       AdjustmentDetail aDetail)

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

  Specified by:
    `adjust` in interface `Pool`
  Parameters:
    `aDetail` - the `AdjustmentDetail` to apply to the objects.

### adjust

    public void adjust(PoolObject object,
                       AdjustmentDetail aDetail)

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

  Specified by:
    `adjust` in interface `Pool`
  Parameters:
    `object` - the `PoolObject` to adjust the price of.
    `aDetail` - the `AdjustmentDetail` to apply to the object.

### getByPrice

    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.

  Specified by:
    `getByPrice` in interface `OrderPool`

### getCurrency

    public String getCurrency()

  Specified by:
    `getCurrency` in interface `Pool`

### getCurrentSize

    public int getCurrentSize()

  Specified by:
    `getCurrentSize` in interface `OrderPool`

### getDetail

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

  Specified by:
    `getDetail` in interface `Pool`

### getQuote

    public Quote getQuote()

  Specified by:
    `getQuote` in interface `OrderPool`

### remove

    public void remove(Iterator poolObjects)

  Specified by:
    `remove` in interface `Pool`
  Returns:
    void
  See Also:
    `PoolObject`

### remove

    public void remove(PoolObject anObject)

  Specified by:
    `remove` in interface `Pool`
  Returns:
    void
  See Also:
    `OrderObject`

### set

    public void set(com.bea.commerce.ebusiness.price.service.internal.PricingContext context,
                    Quote quote)

  Specified by:
    `set` in interface `OrderPool`

### toString

    public String toString()

### toString

    public String toString(int type)

  Specified by:
    `toString` in interface `OrderPool`

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 BEA Systems, Inc. All Rights Reserved