Interface PriceScheduleQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable
This is the query for searching for price schedules. Each method
specifies an AND term while multiple invocations of the same
method produce a nested OR.
Like all OsidQueries, PriceScheduleQuery is stateful
and must not be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the list price terms.voidClears the priceIdterms.voidClears the price terms.voidClears the productIdterms.voidClears the product terms.voidClears the recurring interval terms.voidClears the recurring terms.voidClears the storeIdterms.voidClears the store terms.Gets the query for a price.getPriceScheduleQueryRecord(Type priceScheduleRecordType) Gets the price schedule query record corresponding to the givenPriceSchedulerecordType.Gets the query for a product.Gets the query for a store query.voidmatchAnyListPrice(boolean match) Matches price schedules that have any list price set.voidmatchAnyPrice(boolean match) Matches price schedules with any price.voidmatchAnyProduct(boolean match) Matches price schedules used with any product.voidmatchAnyRecurringInterval(boolean match) Matches price schedules that have any recurring interval set.voidmatchListPrice(Currency low, Currency high, boolean match) Matches the list price between the given range inclusive.voidmatchPriceId(Id priceId, boolean match) Sets the priceIdfor this query.voidmatchProductId(Id productId, boolean match) Sets the productIdfor this query.voidmatchRecurring(boolean match) Matches price schedules with a recurring list price.voidmatchRecurringInterval(Duration low, Duration high, boolean match) Matches the recurring interval between the given range inclusive.voidmatchStoreId(Id storeId, boolean match) Sets the priceIdfor this query to match orders assigned to stores.booleanTests if a price query is available.booleanTests if a product query is available.booleanTests if aStoreQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeMethods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdMethods inherited from interface OsidObjectQuery
clearCommentIdTerms, 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, supportsSubjectRelevancyQueryMethods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
-
Method Details
-
matchPriceId
Sets the priceIdfor this query.- Parameters:
priceId- a priceIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-priceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearPriceIdTerms
void clearPriceIdTerms()Clears the priceIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsPriceQuery
boolean supportsPriceQuery()Tests if a price query is available.- Returns:
trueif a price query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPriceQuery
PriceQuery getPriceQuery()Gets the query for a price.- Returns:
- the price query
- Throws:
UnimplementedException-supportsPriceQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsPriceQuery()} is {@code true}.
-
matchAnyPrice
void matchAnyPrice(boolean match) Matches price schedules with any price.- Parameters:
match-trueto match price sschedules with any price,falseto match price schedules with no prices- Compliance:
mandatory- This method must be implemented.
-
clearPriceTerms
void clearPriceTerms()Clears the price terms.- Compliance:
mandatory- This method must be implemented.
-
matchProductId
Sets the productIdfor this query.- Parameters:
productId- a productIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-productIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearProductIdTerms
void clearProductIdTerms()Clears the productIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsProductQuery
boolean supportsProductQuery()Tests if a product query is available.- Returns:
trueif a product query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getProductQuery
ProductQuery getProductQuery()Gets the query for a product.- Returns:
- the product query
- Throws:
UnimplementedException-supportsProductQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsProductQuery()} is {@code true}.
-
matchAnyProduct
void matchAnyProduct(boolean match) Matches price schedules used with any product.- Parameters:
match-trueto match price schedules with any product,falseto match price schedules with no products- Compliance:
mandatory- This method must be implemented.
-
clearProductTerms
void clearProductTerms()Clears the product terms.- Compliance:
mandatory- This method must be implemented.
-
matchStoreId
Sets the priceIdfor this query to match orders assigned to stores.- Parameters:
storeId- a storeIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-storeIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearStoreIdTerms
void clearStoreIdTerms()Clears the storeIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsStoreQuery
boolean supportsStoreQuery()Tests if aStoreQueryis available.- Returns:
trueif a store query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getStoreQuery
StoreQuery getStoreQuery()Gets the query for a store query. Multiple retrievals produce a nestedORterm.- Returns:
- the store query
- Throws:
UnimplementedException-supportsStoreQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStoreQuery()} is {@code true}.
-
clearStoreTerms
void clearStoreTerms()Clears the store terms.- Compliance:
mandatory- This method must be implemented.
-
matchListPrice
Matches the list price between the given range inclusive.- Parameters:
low- start of rangehigh- end of rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-lowis greater thanhighNullArgumentException-loworhighisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyListPrice
void matchAnyListPrice(boolean match) Matches price schedules that have any list price set.- Parameters:
match-trueto match price schedules with any list price,falseto match price schedules with no list price- Compliance:
mandatory- This method must be implemented.
-
clearListPriceTerms
void clearListPriceTerms()Clears the list price terms.- Compliance:
mandatory- This method must be implemented.
-
matchRecurring
void matchRecurring(boolean match) Matches price schedules with a recurring list price.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearRecurringTerms
void clearRecurringTerms()Clears the recurring terms.- Compliance:
mandatory- This method must be implemented.
-
matchRecurringInterval
Matches the recurring interval between the given range inclusive.- Parameters:
low- start of rangehigh- end of rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-lowis greater thanhighNullArgumentException-loworhighisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyRecurringInterval
void matchAnyRecurringInterval(boolean match) Matches price schedules that have any recurring interval set.- Parameters:
match-trueto match price schedules with any recurring interval,falseto match price schedules with no recurring interval- Compliance:
mandatory- This method must be implemented.
-
clearRecurringIntervalTerms
void clearRecurringIntervalTerms()Clears the recurring interval terms.- Compliance:
mandatory- This method must be implemented.
-
getPriceScheduleQueryRecord
PriceScheduleQueryRecord getPriceScheduleQueryRecord(Type priceScheduleRecordType) throws OperationFailedException Gets the price schedule query record corresponding to the givenPriceSchedulerecordType. Multiple record retrievals produce a nested booleanORterm.- Parameters:
priceScheduleRecordType- a price schedule record type- Returns:
- the price schedule query record
- Throws:
NullArgumentException-priceScheduleRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(priceScheduleRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-