public interface PriceQuery extends OsidRuleQuery, OsidSubjugateableQuery
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.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAmountTerms()
Clears the amount terms.
|
void |
clearDemographicIdTerms()
Clears the resource
Id terms. |
void |
clearDemographicTerms()
Clears the resource terms.
|
void |
clearItemIdTerms()
Clears the item
Id terms. |
void |
clearItemTerms()
Clears the item terms.
|
void |
clearMaximumQuantityTerms()
Clears the maximum quantity terms.
|
void |
clearMinimumAmountTerms()
Clears the minimum amount terms.
|
void |
clearMinimumQuantityTerms()
Clears the minimum quantity terms.
|
void |
clearPriceScheduleIdTerms()
Clears the price schedule
Id terms. |
void |
clearPriceScheduleTerms()
Clears the price schedule terms.
|
void |
clearRecurringIntervalTerms()
Clears the recurring interval terms.
|
void |
clearStoreIdTerms()
Clears the store
Id terms. |
void |
clearStoreTerms()
Clears the store terms.
|
ResourceQuery |
getDemographicQuery()
Gets the query for a resource.
|
ItemQuery |
getItemQuery()
Gets the query for an item.
|
PriceQueryRecord |
getPriceQueryRecord(Type priceRecordType)
Gets the price query record corresponding to the given
Price
record Type. |
PriceScheduleQuery |
getPriceScheduleQuery()
Gets the query for a price schedule.
|
StoreQuery |
getStoreQuery()
Gets the query for a store query.
|
void |
matchAmount(Currency low,
Currency high,
boolean match)
Matches the amount between the given range inclusive.
|
void |
matchAnyAmount(boolean match)
Matches items that have any amount set.
|
void |
matchAnyDemographic(boolean match)
Matches prices with any demographic.
|
void |
matchAnyItem(boolean match)
Matches prices used with any item.
|
void |
matchAnyRecurringInterval(boolean match)
Matches prices with any recurring interval.
|
void |
matchDemographicId(Id resourceId,
boolean match)
Sets the resource
Id for this query. |
void |
matchItemId(Id itemId,
boolean match)
Sets the item
Id for this query. |
void |
matchMaximumQuantity(long low,
long high,
boolean match)
Matches the maximum quantity between the given range inclusive.
|
void |
matchMinimumAmount(Currency amount,
boolean match)
Matches the a minimum price amount.
|
void |
matchMinimumQuantity(long low,
long high,
boolean match)
Matches the minimum quantity between the given range inclusive.
|
void |
matchPriceScheduleId(Id priceScheduleId,
boolean match)
Sets the price schedule
Id for this query. |
void |
matchRecurringInterval(Duration low,
Duration high,
boolean match)
Matches the recurring interval between the given duration range
inclusive.
|
void |
matchStoreId(Id storeId,
boolean match)
Sets the price
Id for this query to match orders
assigned to stores. |
boolean |
supportsDemographicQuery()
Tests if a resource query is available.
|
boolean |
supportsItemQuery()
Tests if an item query is available.
|
boolean |
supportsPriceScheduleQuery()
Tests if a price schedule query is available.
|
boolean |
supportsStoreQuery()
Tests if a
StoreQuery is available. |
clearRuleIdTerms, clearRuleTerms, getRuleQuery, matchAnyRule, matchRuleId, supportsRuleQueryclearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeclearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperationalvoid matchPriceScheduleId(Id priceScheduleId, boolean match)
Id for this query.priceScheduleId - a price schedule Id match - true for a positive match, false
for a negative matchNullArgumentException - priceScheduleId
is null mandatory - This method must be implemented. void clearPriceScheduleIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsPriceScheduleQuery()
true if a price schedule query is available,
false otherwisemandatory - This method must be implemented. PriceScheduleQuery getPriceScheduleQuery()
UnimplementedException -
supportsPriceScheduleQuery() is false optional - This method must be implemented if
supportsPriceScheduleQuery() is true.
void clearPriceScheduleTerms()
mandatory - This method must be implemented. void matchMinimumQuantity(long low,
long high,
boolean match)
low - start of rangehigh - end of rangematch - true for a positive match, false
for a negative matchInvalidArgumentException - low is
greater than high mandatory - This method must be implemented. void clearMinimumQuantityTerms()
mandatory - This method must be implemented. void matchMaximumQuantity(long low,
long high,
boolean match)
low - start of rangehigh - end of rangematch - true for a positive match, false
for a negative matchInvalidArgumentException - low is
greater than high mandatory - This method must be implemented. void clearMaximumQuantityTerms()
mandatory - This method must be implemented. void matchDemographicId(Id resourceId, boolean match)
Id for this query.resourceId - a resource Id match - true for a positive match, false
for a negative matchNullArgumentException - resource is
null mandatory - This method must be implemented. void clearDemographicIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsDemographicQuery()
true if a resource query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getDemographicQuery()
UnimplementedException -
supportsDemographicQuery() is false optional - This method must be implemented if
supportsDemographicQuery() is true. void matchAnyDemographic(boolean match)
match - true to match prices with any
demographic, false to match prices with no
ordersmandatory - This method must be implemented. void clearDemographicTerms()
mandatory - This method must be implemented. void matchAmount(Currency low, Currency high, boolean match)
low - start of rangehigh - end of rangematch - true for a positive match, false
for a negative matchInvalidArgumentException - low is
greater than high NullArgumentException - low or
high is null mandatory - This method must be implemented. void matchAnyAmount(boolean match)
match - true to match items with any amount,
false to match items with no amountmandatory - This method must be implemented. void clearAmountTerms()
mandatory - This method must be implemented. void matchMinimumAmount(Currency amount, boolean match)
amount - an amountmatch - true for a positive match, false
for a negative matchmandatory - This method must be implemented. void clearMinimumAmountTerms()
mandatory - This method must be implemented. void matchRecurringInterval(Duration low, Duration high, boolean match)
low - start of rangehigh - end of rangematch - true for a positive match, false
for a negative matchInvalidArgumentException - low is
greater than high NullArgumentException - low or
high is null mandatory - This method must be implemented. void matchAnyRecurringInterval(boolean match)
match - true to match prices with any recurring
interval, false to match one-time pricesmandatory - This method must be implemented. void clearRecurringIntervalTerms()
mandatory - This method must be implemented. void matchItemId(Id itemId, boolean match)
Id for this query.itemId - an item Id match - true for a positive match, false
for a negative matchNullArgumentException - priceScheduleId
is null mandatory - This method must be implemented. void clearItemIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsItemQuery()
true if an item query is available,
false otherwisemandatory - This method must be implemented. ItemQuery getItemQuery()
UnimplementedException - supportsItemQuery()
is false optional - This method must be implemented if
supportsItemQuery() is true. void matchAnyItem(boolean match)
match - true to match prices with any order,
false to match prices with no ordersmandatory - This method must be implemented. void clearItemTerms()
mandatory - This method must be implemented. void matchStoreId(Id storeId, boolean match)
Id for this query to match orders
assigned to stores.storeId - a store Id match - true for a positive match, false
for a negative matchNullArgumentException - storeId is
null mandatory - This method must be implemented. void clearStoreIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsStoreQuery()
StoreQuery is available. true if a store query is available,
false otherwisemandatory - This method must be implemented. StoreQuery getStoreQuery()
OR term.UnimplementedException - supportsStoreQuery()
is false optional - This method must be implemented if
supportsStoreQuery() is true. void clearStoreTerms()
mandatory - This method must be implemented. PriceQueryRecord getPriceQueryRecord(Type priceRecordType) throws OperationFailedException
Price
record Type. Multiple record retrievals produce
a nested boolean OR term.priceRecordType - an price record typeNullArgumentException - priceRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(priceRecordType) is false mandatory - This method must be implemented.