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
public static final String |
-
cName
- String
|
public static final int |
-
LONG
- int
|
public static final int |
-
SHORT
- int
|
cName
public static final String
cName
LONG
public static final int LONG
SHORT
public static final int SHORT
OrderPoolImpl
public OrderPoolImpl()
OrderPoolImpl
public OrderPoolImpl(PricingContext
context,
Quote
quote)
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)