OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.OrderItemQuery
Implementsosid.OsidRelationshipQuery
Used Byosid.ordering.OrderItemQuerySession
osid.ordering.OrderItemSearchSession
osid.ordering.OrderItemSmartStoreSession
osid.ordering.OrderQuery
osid.ordering.PriceQuery
osid.ordering.ProductQuery
Description

This is the query for searching for order items. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

Like all OsidQueries, OrderItemQuery is stateful and must not be accessed by multiple processing threads.

MethodmatchOrderId
Description

Sets the order Id for this query to match orders assigned to order items.

Parametersosid.id.IdorderId an order Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT orderId is null
Compliancemandatory This method must be implemented.
MethodclearOrderIdTerms
Description

Clears the order Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsOrderQuery
Description

Tests if an order query is available.

Returnboolean true if an order query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetOrderQuery
Description

Gets the query for an order item.

Returnosid.ordering.OrderQuery the order query
ErrorsUNIMPLEMENTED supportsOrderQuery() is false
Complianceoptional This method must be implemented if supportsOrderQuery() is true.
MethodclearOrderTerms
Description

Clears the order terms.

Compliancemandatory This method must be implemented.
MethodmatchDerived
Description

Matches order items that are derived.

Parametersbooleanmatch true to match derived order items, false to match selected order items
Compliancemandatory This method must be implemented.
MethodclearDerivedTerms
Description

Clears the derived terms.

Compliancemandatory This method must be implemented.
MethodmatchProductId
Description

Sets the product Id for this query.

Parametersosid.id.IdproductId a product Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT productId is null
Compliancemandatory This method must be implemented.
MethodclearProductIdTerms
Description

Clears the product Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsProductQuery
Description

Tests if a product query is available.

Returnboolean true if a product query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetProductQuery
Description

Gets the query for a product.

Returnosid.ordering.ProductQuery the product query
ErrorsUNIMPLEMENTED supportsProductQuery() is false
Complianceoptional This method must be implemented if supportsProductQuery() is true.
MethodclearProductTerms
Description

Clears the product terms.

Compliancemandatory This method must be implemented.
MethodmatchQuantity
Description

Matches quantities between the given range inclusive.

Parameterscardinallow low range
cardinalhigh high range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
Compliancemandatory This method must be implemented.
MethodclearQuantityTerms
Description

Clears the quantity terms.

Compliancemandatory This method must be implemented.
MethodmatchCost
Description

Matches costs between the given range inclusive.

Parametersosid.financials.Currencylow low range
osid.financials.Currencyhigh high range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
NULL_ARGUMENT low or high is null
Compliancemandatory This method must be implemented.
MethodclearCostTerms
Description

Clears the cost terms.

Compliancemandatory This method must be implemented.
MethodmatchMinimumCost
Description

Matches minimum costs between the given range inclusive.

Parametersosid.financials.Currencycost cost
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT cost is null
Compliancemandatory This method must be implemented.
MethodclearMinimumCostTerms
Description

Clears the minimum cost terms.

Compliancemandatory This method must be implemented.
MethodmatchStoreId
Description

Sets the order item Id for this query to match orders assigned to stores.

Parametersosid.id.IdstoreId a store Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT storeId is null
Compliancemandatory This method must be implemented.
MethodclearStoreIdTerms
Description

Clears the store Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsStoreQuery
Description

Tests if a StoreQuery is available.

Returnboolean true if a store query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetStoreQuery
Description

Gets the query for a store query. Multiple retrievals produce a nested OR term.

Returnosid.ordering.StoreQuery the store query
ErrorsUNIMPLEMENTED supportsStoreQuery() is false
Complianceoptional This method must be implemented if supportsStoreQuery() is true.
MethodclearStoreTerms
Description

Clears the store terms.

Compliancemandatory This method must be implemented.
MethodgetOrderItemQueryRecord
Description

Gets the order item query record corresponding to the given OrderItem record Type .Multiple record retrievals produce a nested boolean OR term.

Parametersosid.type.TypeorderItemRecordType an order item record type
Returnosid.ordering.records.OrderItemQueryRecord the order item query record
ErrorsNULL_ARGUMENT orderItemRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(itemRecordType) is false
Compliancemandatory This method must be implemented.