public interface ProductQuery extends OsidObjectQuery
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.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAvailabilityTerms()
Clears the availability terms.
|
void |
clearCodeTerms()
Clears the code.
|
void |
clearItemIdTerms()
Clears the item
Id terms. |
void |
clearItemTerms()
Clears the item terms.
|
void |
clearPriceScheduleIdTerms()
Clears the price schedule
Id terms. |
void |
clearPriceScheduleTerms()
Clears the price schedule terms.
|
void |
clearStoreIdTerms()
Clears the store
Id terms. |
void |
clearStoreTerms()
Clears the store terms.
|
ItemQuery |
getItemQuery()
Gets the query for an item.
|
PriceScheduleQuery |
getPriceScheduleQuery()
Gets the query for a price schedule.
|
ProductQueryRecord |
getProductQueryRecord(Type productRecordType)
Gets the product query record corresponding to the given
Product record Type. |
StoreQuery |
getStoreQuery()
Gets the query for a store query.
|
void |
matchAnyAvailability(boolean match)
Matches products with any availability set.
|
void |
matchAnyCode(boolean match)
Matches products with any code.
|
void |
matchAnyItem(boolean match)
Matches prices used with any item.
|
void |
matchAnyPriceSchedule(boolean match)
Matches products with any price schedule.
|
void |
matchAvailability(long low,
long high,
boolean match)
Matches product availability between the given range inclusive.
|
void |
matchCode(java.lang.String code,
Type stringMatchType,
boolean match)
Matches product codes.
|
void |
matchItemId(Id itemId,
boolean match)
Sets the item
Id for this query. |
void |
matchPriceScheduleId(Id priceScheduleId,
boolean match)
Sets the price schedule
Id for this query. |
void |
matchStoreId(Id storeId,
boolean match)
Sets the product
Id for this query to match orders
assigned to stores. |
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. |
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, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypevoid matchCode(java.lang.String code,
Type stringMatchType,
boolean match)
code - a product codestringMatchType - a string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - code not of
stringMatchType NullArgumentException - code or
stringMatchType is null mandatory - This method must be implemented. void matchAnyCode(boolean match)
match - true to match products with any code,
false to match products with no codemandatory - This method must be implemented. void clearCodeTerms()
mandatory - This method must be implemented. void 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 matchAnyPriceSchedule(boolean match)
match - true to match products with any price
schedule, false to match products with no price
schedulemandatory - This method must be implemented. void clearPriceScheduleTerms()
mandatory - This method must be implemented. void matchAvailability(long low,
long high,
boolean match)
low - a product codehigh - a string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - low is
greater than high mandatory - This method must be implemented. void matchAnyAvailability(boolean match)
match - true to match products with
anyavailability value, false to match products
with no availability valuemandatory - This method must be implemented. void clearAvailabilityTerms()
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. ProductQueryRecord getProductQueryRecord(Type productRecordType) throws OperationFailedException
Product record Type. Multiple record retrievals
produce a nested boolean OR term.productRecordType - an product record typeNullArgumentException - productRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(productRecordType) is false
mandatory - This method must be implemented.