OSID Logo
OSID Specifications
ordering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.ordering.PriceQuery
Implementsosid.OsidRuleQuery
osid.OsidSubjugateableQuery
Description

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

MethodmatchPriceScheduleId
Description

Sets the price schedule Id for this query.

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

Clears the price schedule Id terms.

CompliancemandatoryThis 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
CompliancemandatoryThis method must be implemented.
MethodgetPriceScheduleQuery
Description

Gets the query for a price schedule.

Returnosid.ordering.PriceScheduleQuerythe price schedule query
ErrorsUNIMPLEMENTED supportsPriceScheduleQuery() is false
ComplianceoptionalThis method must be implemented if supportsPriceScheduleQuery() is true.
MethodclearPriceScheduleTerms
Description

Clears the price schedule terms.

CompliancemandatoryThis method must be implemented.
MethodmatchMinimumQuantity
Description

Matches the minimum quantity between the given range inclusive.

Parameterscardinallowstart of range
cardinalhighend of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
CompliancemandatoryThis method must be implemented.
MethodclearMinimumQuantityTerms
Description

Clears the minimum quantity terms.

CompliancemandatoryThis method must be implemented.
MethodmatchMaximumQuantity
Description

Matches the maximum quantity between the given range inclusive.

Parameterscardinallowstart of range
cardinalhighend of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
CompliancemandatoryThis method must be implemented.
MethodclearMaximumQuantityTerms
Description

Clears the maximum quantity terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDemographicId
Description

Sets the resource Id for this query.

Parametersosid.id.IdresourceIda resource Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resource is null
CompliancemandatoryThis method must be implemented.
MethodclearDemographicIdTerms
Description

Clears the resource Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDemographicQuery
Description

Tests if a resource query is available.

Returnboolean true if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDemographicQuery
Description

Gets the query for a resource.

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTED supportsDemographicQuery() is false
ComplianceoptionalThis method must be implemented if supportsDemographicQuery() is true.
MethodmatchAnyDemographic
Description

Matches prices with any demographic.

Parametersbooleanmatch true to match prices with any demographic, false to match prices with no orders
CompliancemandatoryThis method must be implemented.
MethodclearDemographicTerms
Description

Clears the resource terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAmount
Description

Matches the amount between the given range inclusive.

Parametersosid.financials.Currencylowstart of range
osid.financials.Currencyhighend of 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
CompliancemandatoryThis method must be implemented.
MethodmatchAnyAmount
Description

Matches items that have any amount set.

Parametersbooleanmatch true to match items with any amount, false to match items with no amount
CompliancemandatoryThis method must be implemented.
MethodclearAmountTerms
Description

Clears the amount terms.

CompliancemandatoryThis method must be implemented.
MethodmatchMinimumAmount
Description

Matches the a minimum price amount.

Parametersosid.financials.Currencyamountan amount
booleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearMinimumAmountTerms
Description

Clears the minimum amount terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRecurringInterval
Description

Matches the recurring interval between the given duration range inclusive.

Parametersosid.calendaring.Durationlowstart of range
osid.calendaring.Durationhighend of 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
CompliancemandatoryThis method must be implemented.
MethodmatchAnyRecurringInterval
Description

Matches prices with any recurring interval.

Parametersbooleanmatch true to match prices with any recurring interval, false to match one-time prices
CompliancemandatoryThis method must be implemented.
MethodclearRecurringIntervalTerms
Description

Clears the recurring interval terms.

CompliancemandatoryThis method must be implemented.
MethodmatchItemId
Description

Sets the item Id for this query.

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

Clears the item Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsItemQuery
Description

Tests if an item query is available.

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

Gets the query for an item.

Returnosid.ordering.ItemQuerythe item query
ErrorsUNIMPLEMENTED supportsItemQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearItemTerms
Description

Clears the item terms.

CompliancemandatoryThis method must be implemented.
MethodmatchStoreId
Description

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

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

Clears the store Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsStoreQuery
Description

Tests if a StoreQuery is available.

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

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

Returnosid.ordering.StoreQuerythe store query
ErrorsUNIMPLEMENTED supportsStoreQuery() is false
ComplianceoptionalThis method must be implemented if supportsStoreQuery() is true.
MethodclearStoreTerms
Description

Clears the store terms.

CompliancemandatoryThis method must be implemented.
MethodgetPriceQueryRecord
Description

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

Parametersosid.type.TypepriceRecordTypean price record type
Returnosid.ordering.records.PriceQueryRecordthe price query record
ErrorsNULL_ARGUMENT priceRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(priceRecordType) is false
CompliancemandatoryThis method must be implemented.