OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.PriceQuery
Implementsosid.OsidRuleQuery
osid.OsidSubjugateableQuery
Used Byosid.ordering.PriceScheduleQuery
osid.ordering.rules.PriceEnablerQuery
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.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.
MethodclearPriceScheduleTerms
Description

Clears the price schedule terms.

Compliancemandatory This method must be implemented.
MethodmatchMinimumQuantity
Description

Matches the minimum quantity between the given range inclusive.

Parameterscardinallow start of range
cardinalhigh end of 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.
MethodclearMinimumQuantityTerms
Description

Clears the minimum quantity terms.

Compliancemandatory This method must be implemented.
MethodmatchMaximumQuantity
Description

Matches the maximum quantity between the given range inclusive.

Parameterscardinallow start of range
cardinalhigh end of 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.
MethodclearMaximumQuantityTerms
Description

Clears the maximum quantity terms.

Compliancemandatory This method must be implemented.
MethodmatchDemographicId
Description

Sets the resource Id for this query.

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

Clears the resource Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDemographicQuery
Description

Tests if a resource query is available.

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

Gets the query for a resource.

Returnosid.resource.ResourceQuery the resource query
ErrorsUNIMPLEMENTED supportsDemographicQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearDemographicTerms
Description

Clears the resource terms.

Compliancemandatory This method must be implemented.
MethodmatchAmount
Description

Matches the amount between the given range inclusive.

Parametersosid.financials.Currencylow start of range
osid.financials.Currencyhigh end 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearAmountTerms
Description

Clears the amount terms.

Compliancemandatory This method must be implemented.
MethodmatchMinimumAmount
Description

Matches the a minimum price amount.

Parametersosid.financials.Currencyamount an amount
booleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodclearMinimumAmountTerms
Description

Clears the minimum amount terms.

Compliancemandatory This method must be implemented.
MethodmatchRecurringInterval
Description

Matches the recurring interval between the given duration range inclusive.

Parametersosid.calendaring.Durationlow start of range
osid.calendaring.Durationhigh end 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearRecurringIntervalTerms
Description

Clears the recurring interval 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 price 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.
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.TypepriceRecordType a price record type
Returnosid.ordering.records.PriceQueryRecord the price query record
ErrorsNULL_ARGUMENT priceRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(priceRecordType) is false
Compliancemandatory This method must be implemented.