public interface ItemQuery extends OsidObjectQuery
This is the query for searching items. Each method match specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAccountIdTerms()
Clears the account
Id terms. |
void |
clearAccountTerms()
Clears the account terms.
|
void |
clearAmountTerms()
Clears the amount terms.
|
void |
clearBusinessIdTerms()
Clears the business
Id terms. |
void |
clearBusinessTerms()
Clears the business terms.
|
void |
clearCategoryIdTerms()
Clears the category
Id terms. |
void |
clearCategoryTerms()
Clears the category terms.
|
void |
clearDebitTerms()
Clears the debit terms.
|
void |
clearEntryIdTerms()
Clears the entry
Id terms. |
void |
clearEntryTerms()
Clears the entry terms.
|
void |
clearProductIdTerms()
Clears the account
Id terms. |
void |
clearProductTerms()
Clears the product terms.
|
void |
clearRecurringIntervalTerms()
Clears the amount terms.
|
AccountQuery |
getAccountQuery()
Gets the query for an account.
|
BusinessQuery |
getBusinessQuery()
Gets the query for a business.
|
CategoryQuery |
getCategoryQuery()
Gets the query for a category.
|
EntryQuery |
getEntryQuery()
Gets the query for an entry.
|
ItemQueryRecord |
getItemQueryRecord(Type itemRecordType)
Gets the item query record corresponding to the given
Customer
record Type. |
ProductQuery |
getProductQuery()
Gets the query for a product.
|
void |
matchAccountId(Id accountId,
boolean match)
Sets the account
Id for this query to match items that
have a related financial account. |
void |
matchAmount(Currency low,
Currency high,
boolean match)
Matches the amount between the given range inclusive.
|
void |
matchAnyAccount(boolean match)
Matches items that have any account.
|
void |
matchAnyAmount(boolean match)
Matches items that have any amount set.
|
void |
matchAnyEntry(boolean match)
Matches items that have any entry.
|
void |
matchAnyProduct(boolean match)
Matches items that have any product.
|
void |
matchAnyRecurringInterval(boolean match)
Matches items that have any recurring interval.
|
void |
matchBusinessId(Id businessId,
boolean match)
Sets the business
Id for this query to match customers
assigned to businesses. |
void |
matchCategoryId(Id categoryId,
boolean match)
Sets the category
Id for this query. |
void |
matchDebit(boolean match)
Matches items that have debit amounts.
|
void |
matchEntryId(Id entryId,
boolean match)
Sets the entry
Id for this query to match items that
have a related entry. |
void |
matchProductId(Id productId,
boolean match)
Sets the product
Id for this query to match items that
have a related product. |
void |
matchRecurringInterval(Duration low,
Duration high,
boolean match)
Matches the recurring interval between the given range inclusive.
|
boolean |
supportsAccountQuery()
Tests if an
AccountQuery is available. |
boolean |
supportsBusinessQuery()
Tests if a
BusinessQuery is available. |
boolean |
supportsCategoryQuery()
Tests if a
CategoryQuery is available. |
boolean |
supportsEntryQuery()
Tests if an
EntryQuery is available. |
boolean |
supportsProductQuery()
Tests if a
ProductQuery 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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
void matchCategoryId(Id categoryId, boolean match)
Id
for this query.categoryId
- a category Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- categoryId
is
null
mandatory
- This method must be implemented. void clearCategoryIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsCategoryQuery()
CategoryQuery
is available. true
if a category query is available,
false
otherwisemandatory
- This method must be implemented. CategoryQuery getCategoryQuery()
OR
term.UnimplementedException
- supportsCategoryQuery()
is false
optional
- This method must be implemented if
supportscategoryQuery()
is true.
void clearCategoryTerms()
mandatory
- This method must be implemented. void matchAccountId(Id accountId, boolean match)
Id
for this query to match items that
have a related financial account.accountId
- an account Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- accountId
is
null
mandatory
- This method must be implemented. void clearAccountIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAccountQuery()
AccountQuery
is available. true
if an account query is available,
false
otherwisemandatory
- This method must be implemented. AccountQuery getAccountQuery()
OR
term.UnimplementedException
- supportsAccountQuery()
is false
optional
- This method must be implemented if
supportsAccountQuery()
is true.
void matchAnyAccount(boolean match)
match
- true
to match items with any account,
false
to match items with no accountmandatory
- This method must be implemented. void clearAccountTerms()
mandatory
- This method must be implemented. void matchProductId(Id productId, boolean match)
Id
for this query to match items that
have a related product.productId
- a product Id
match
- true
if 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()
ProductQuery
is available. true
if a product query is available,
false
otherwisemandatory
- This method must be implemented. ProductQuery getProductQuery()
OR
term.UnimplementedException
- supportsProductQuery()
is false
optional
- This method must be implemented if
supportsProductQuery()
is true.
void matchAnyProduct(boolean match)
match
- true
to match items with any product,
false
to match items with no productmandatory
- This method must be implemented. void clearProductTerms()
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 matchDebit(boolean match)
match
- true
to match items with a debit amount,
false
to match items with a credit amountmandatory
- This method must be implemented. void clearDebitTerms()
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 items with any recurring
interval, false
to match items with a one-time
chargemandatory
- This method must be implemented. void clearRecurringIntervalTerms()
mandatory
- This method must be implemented. void matchEntryId(Id entryId, boolean match)
Id
for this query to match items that
have a related entry.entryId
- an entry Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- entryId
is
null
mandatory
- This method must be implemented. void clearEntryIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsEntryQuery()
EntryQuery
is available. true
if an entry query is available,
false
otherwisemandatory
- This method must be implemented. EntryQuery getEntryQuery()
OR
term.UnimplementedException
- supportsEntryQuery()
is false
optional
- This method must be implemented if
supportsEntryQuery()
is true.
void matchAnyEntry(boolean match)
match
- true
to match items with any entry.
false
to match items with no entrymandatory
- This method must be implemented. void clearEntryTerms()
mandatory
- This method must be implemented. void matchBusinessId(Id businessId, boolean match)
Id
for this query to match customers
assigned to businesses.businessId
- the business Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- businessId
is
null
mandatory
- This method must be implemented. void clearBusinessIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsBusinessQuery()
BusinessQuery
is available. true
if a business query is available,
false
otherwisemandatory
- This method must be implemented. BusinessQuery getBusinessQuery()
OR
term.UnimplementedException
- supportsBusinessQuery()
is false
optional
- This method must be implemented if
supportsBusinessQuery()
is true.
void clearBusinessTerms()
mandatory
- This method must be implemented. ItemQueryRecord getItemQueryRecord(Type itemRecordType) throws OperationFailedException
Customer
record Type.
Multiple record retrievals produce
a nested 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.