public interface ItemQuery extends OsidRelationshipQuery
This is the query for searching for items. Each method specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearCostTerms()
Clears the cost terms.
|
void |
clearDerivedTerms()
Clears the derived terms.
|
void |
clearMinimumCostTerms()
Clears the minimum cost terms.
|
void |
clearOrderIdTerms()
Clears the order
Id terms. |
void |
clearOrderTerms()
Clears the order terms.
|
void |
clearProductIdTerms()
Clears the product
Id terms. |
void |
clearProductTerms()
Clears the product terms.
|
void |
clearQuantityTerms()
Clears the quantity terms.
|
void |
clearStoreIdTerms()
Clears the store
Id terms. |
void |
clearStoreTerms()
Clears the store terms.
|
ItemQueryRecord |
getItemQueryRecord(Type itemRecordType)
Gets the item query record corresponding to the given
Item
record Type. |
OrderQuery |
getOrderQuery()
Gets the query for an item.
|
ProductQuery |
getProductQuery()
Gets the query for a product.
|
StoreQuery |
getStoreQuery()
Gets the query for a store query.
|
void |
matchCost(Currency low,
Currency high,
boolean match)
Matches costs between the given range inclusive.
|
void |
matchDerived(boolean match)
Matches items that are derived.
|
void |
matchMinimumCost(Currency cost,
boolean match)
Matches minimum costs between the given range inclusive.
|
void |
matchOrderId(Id orderId,
boolean match)
Sets the order
Id for this query to match orders
assigned to items. |
void |
matchProductId(Id productId,
boolean match)
Sets the product
Id for this query. |
void |
matchQuantity(long low,
long high,
boolean match)
Matches quantities between the given range inclusive.
|
void |
matchStoreId(Id storeId,
boolean match)
Sets the item
Id for this query to match orders
assigned to stores. |
boolean |
supportsOrderQuery()
Tests if a order query is available.
|
boolean |
supportsProductQuery()
Tests if a product query is available.
|
boolean |
supportsStoreQuery()
Tests if a
StoreQuery is available. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQuery
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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
void matchOrderId(Id orderId, boolean match)
Id
for this query to match orders
assigned to items.orderId
- a order Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- orderId
is
null
mandatory
- This method must be implemented. void clearOrderIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsOrderQuery()
true
if a order query is available,
false
otherwisemandatory
- This method must be implemented. OrderQuery getOrderQuery()
UnimplementedException
- supportsOrderQuery()
is false
optional
- This method must be implemented if
supportsOrderQuery()
is true.
void clearOrderTerms()
mandatory
- This method must be implemented. void matchDerived(boolean match)
match
- true
to match derived items, false
to match selected itemsmandatory
- This method must be implemented. void clearDerivedTerms()
mandatory
- This method must be implemented. void matchProductId(Id productId, boolean match)
Id
for this query.productId
- a product Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- productId
is
null
mandatory
- This method must be implemented. void clearProductIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsProductQuery()
true
if a product query is available,
false
otherwisemandatory
- This method must be implemented. ProductQuery getProductQuery()
UnimplementedException
- supportsProductQuery()
is false
optional
- This method must be implemented if
supportsProductQuery()
is true.
void clearProductTerms()
mandatory
- This method must be implemented. void matchQuantity(long low, long high, boolean match)
low
- low rangehigh
- high rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- low
is
greater than high
mandatory
- This method must be implemented. void clearQuantityTerms()
mandatory
- This method must be implemented. void matchCost(Currency low, Currency high, boolean match)
low
- low rangehigh
- high 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 clearCostTerms()
mandatory
- This method must be implemented. void matchMinimumCost(Currency cost, boolean match)
cost
- costmatch
- true
for a positive match, false
for a negative matchNullArgumentException
- cost
is
null
mandatory
- This method must be implemented. void clearMinimumCostTerms()
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. ItemQueryRecord getItemQueryRecord(Type itemRecordType) throws OperationFailedException
Item
record Type.
Multiple record retrievals produce
a nested boolean OR
term.itemRecordType
- an item record typeNullArgumentException
- itemRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(itemRecordType)
is false
mandatory
- This method must be implemented.