OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.ProductQuery
Implementsosid.OsidObjectQuery
Used Byosid.billing.ItemQuery
osid.ordering.ItemQuery
osid.ordering.PriceScheduleQuery
osid.ordering.ProductQuerySession
osid.ordering.ProductSearchSession
osid.ordering.ProductSmartStoreSession
osid.ordering.StoreQuery
Description

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

MethodmatchCode
Description

Matches product codes.

Parametersstringcode a product code
osid.type.TypestringMatchType a string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT code not of stringMatchType
NULL_ARGUMENT code or stringMatchType is null
Compliancemandatory This method must be implemented.
MethodmatchAnyCode
Description

Matches products with any code.

Parametersbooleanmatch true to match products with any code, false to match products with no code
Compliancemandatory This method must be implemented.
MethodclearCodeTerms
Description

Clears the code.

Compliancemandatory This method must be implemented.
MethodmatchPriceScheduleId
Description

Sets the price schedule Id for this query.

Parametersosid.id.IdpriceScheduleId a price schedule Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT priceScheduleId is null
Compliancemandatory This method must be implemented.
MethodclearPriceScheduleIdTerms
Description

Clears the price schedule Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsPriceScheduleQuery
Description

Tests if a price schedule query is available.

Returnboolean true if a price schedule query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetPriceScheduleQuery
Description

Gets the query for a price schedule.

Returnosid.ordering.PriceScheduleQuery the price schedule query
ErrorsUNIMPLEMENTED supportsPriceScheduleQuery() is false
Complianceoptional This method must be implemented if supportsPriceScheduleQuery() is true.
MethodmatchAnyPriceSchedule
Description

Matches products with any price schedule.

Parametersbooleanmatch true to match products with any price schedule, false to match products with no price schedule
Compliancemandatory This method must be implemented.
MethodclearPriceScheduleTerms
Description

Clears the price schedule terms.

Compliancemandatory This method must be implemented.
MethodmatchAvailability
Description

Matches product availability between the given range inclusive.

Parameterscardinallow a product code
cardinalhigh a string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
Compliancemandatory This method must be implemented.
MethodmatchAnyAvailability
Description

Matches products with any availability set.

Parametersbooleanmatch true to match products with anyavailability value, false to match products with no availability value
Compliancemandatory This method must be implemented.
MethodclearAvailabilityTerms
Description

Clears the availability terms.

Compliancemandatory This method must be implemented.
MethodmatchItemId
Description

Sets the item Id for this query.

Parametersosid.id.IditemId an item Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT priceScheduleId is null
Compliancemandatory This method must be implemented.
MethodclearItemIdTerms
Description

Clears the item Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsItemQuery
Description

Tests if an item query is available.

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

Gets the query for an item.

Returnosid.ordering.ItemQuery the item query
ErrorsUNIMPLEMENTED supportsItemQuery() is false
Complianceoptional This method must be implemented if supportsItemQuery() is true.
MethodmatchAnyItem
Description

Matches prices used with any item.

Parametersbooleanmatch true to match prices with any order, false to match prices with no orders
Compliancemandatory This method must be implemented.
MethodclearItemTerms
Description

Clears the item terms.

Compliancemandatory This method must be implemented.
MethodmatchStoreId
Description

Sets the product 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.
MethodgetProductQueryRecord
Description

Gets the product query record corresponding to the given Product record Type .Multiple record retrievals produce a nested boolean OR term.

Parametersosid.type.TypeproductRecordType a product record type
Returnosid.ordering.records.ProductQueryRecord the product query record
ErrorsNULL_ARGUMENT productRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(productRecordType) is false
Compliancemandatory This method must be implemented.