public interface BusinessQuery extends OsidCatalogQuery
This is the query for searching businesses. 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 |
clearAncestorBusinessIdTerms()
Clears the ancestor business
Id query terms. |
void |
clearAncestorBusinessTerms()
Clears the ancestor business query terms.
|
void |
clearCategoryIdTerms()
Clears the category
Id query terms. |
void |
clearCategoryTerms()
Clears the category query terms.
|
void |
clearCustomerIdTerms()
Clears the customer
Id query terms. |
void |
clearCustomerTerms()
Clears the customer query terms.
|
void |
clearDescendantBusinessIdTerms()
Clears the descendant business
Id query terms. |
void |
clearDescendantBusinessTerms()
Clears the descendant business query terms.
|
void |
clearEntryIdTerms()
Clears the entry
Id query terms. |
void |
clearEntryTerms()
Clears the entry query terms.
|
void |
clearItemIdTerms()
Clears the item
Id query terms. |
void |
clearItemTerms()
Clears the item query terms.
|
void |
clearPeriodIdTerms()
Clears the period
Id query terms. |
void |
clearPeriodTerms()
Clears the period query terms.
|
BusinessQuery |
getAncestorBusinessQuery()
Gets the query for a business.
|
BusinessQueryRecord |
getBusinessQueryRecord(Type businessRecordType)
Gets the business query record corresponding to the given
Business record Type. |
CategoryQuery |
getCategoryQuery()
Gets the query for a category.
|
CustomerQuery |
getCustomerQuery()
Gets the query for a customer.
|
BusinessQuery |
getDescendantBusinessQuery()
Gets the query for a business.
|
EntryQuery |
getEntryQuery()
Gets the query for an entry.
|
ItemQuery |
getItemQuery()
Gets the query for an item.
|
PeriodQuery |
getPeriodQuery()
Gets the query for a period Multiple retrievals produce a nested
OR term. |
void |
matchAncestorBusinessId(Id businessId,
boolean match)
Sets the business
Id for this query to match businesses
that have the specified business as an ancestor. |
void |
matchAnyAncestorBusiness(boolean match)
Matches businesses with any business ancestor.
|
void |
matchAnyCategory(boolean match)
Matches businesses that have any category.
|
void |
matchAnyCustomer(boolean match)
Matches businesses that have any customer.
|
void |
matchAnyDescendantBusiness(boolean match)
Matches businesses with any descendant business.
|
void |
matchAnyEntry(boolean match)
Matches businesses that have any entry.
|
void |
matchAnyItem(boolean match)
Matches businesses that have any item.
|
void |
matchAnyPeriod(boolean match)
Matches businesses that have any period.
|
void |
matchCategoryId(Id categoryId,
boolean match)
Sets the catalog
Id for this query. |
void |
matchCustomerId(Id customerId,
boolean match)
Sets the customer
Id for this query to match customers
that have a related customer. |
void |
matchDescendantBusinessId(Id businessId,
boolean match)
Sets the business
Id for this query to match businesses
that have the specified business as an descendant. |
void |
matchEntryId(Id itemId,
boolean match)
Sets the entry
Id for this query. |
void |
matchItemId(Id itemId,
boolean match)
Sets the item
Id for this query. |
void |
matchPeriodId(Id periodId,
boolean match)
Sets the period
Id for this query to match catalogs
containing terms. |
boolean |
supportsAncestorBusinessQuery()
Tests if a
BusinessQuery is available. |
boolean |
supportsCategoryQuery()
Tests if a
CategoryQuery is available. |
boolean |
supportsCustomerQuery()
Tests if a
CustomerQuery is available. |
boolean |
supportsDescendantBusinessQuery()
Tests if a
BusinessQuery is available. |
boolean |
supportsEntryQuery()
Tests if an
EntryQuery is available. |
boolean |
supportsItemQuery()
Tests if an
ItemQuery is available. |
boolean |
supportsPeriodQuery()
Tests if a
PeriodQuery 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, supportsStringMatchTypeclearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQueryvoid matchCustomerId(Id customerId, boolean match)
Id for this query to match customers
that have a related customer.customerId - a customer Id match - true if a positive match, false
for a negative matchNullArgumentException - customerId is
null mandatory - This method must be implemented. void clearCustomerIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsCustomerQuery()
CustomerQuery is available. true if a customer query is available,
false otherwisemandatory - This method must be implemented. CustomerQuery getCustomerQuery()
OR term.UnimplementedException - supportsCustomerQuery()
is false optional - This method must be implemented if
supportsCustomerQuery() is true. void matchAnyCustomer(boolean match)
match - true to match customers with any
customer, false to match customers with no
customermandatory - This method must be implemented. void clearCustomerTerms()
mandatory - This method must be implemented. void matchItemId(Id itemId, boolean match)
Id for this query.itemId - an item Id match - true if a positive match, false
for a negative matchNullArgumentException - itemId is
null mandatory - This method must be implemented. void clearItemIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsItemQuery()
ItemQuery is available. true if an item query is available,
false otherwisemandatory - This method must be implemented. ItemQuery getItemQuery()
OR term.UnimplementedException - supportsItemQuery()
is false optional - This method must be implemented if
supportsItemQuery() is true. void matchAnyItem(boolean match)
match - true to match businesses with any item,
false to match businesses with no itemsmandatory - This method must be implemented. void clearItemTerms()
mandatory - This method must be implemented. 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 query 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 matchAnyCategory(boolean match)
match - true to match customers with any
category, false to match customers with no
categorymandatory - This method must be implemented. void clearCategoryTerms()
mandatory - This method must be implemented. void matchEntryId(Id itemId, boolean match)
Id for this query.itemId - 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 query 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 businesses with any entry,
false to match businesses with no entriesmandatory - This method must be implemented. void clearEntryTerms()
mandatory - This method must be implemented. void matchPeriodId(Id periodId, boolean match)
Id for this query to match catalogs
containing terms.periodId - the period Id match - true for a positive match, false
for a negative matchNullArgumentException - periodId is
null mandatory - This method must be implemented. void clearPeriodIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsPeriodQuery()
PeriodQuery is available. true if a period query is available,
false otherwisemandatory - This method must be implemented. PeriodQuery getPeriodQuery()
OR term.UnimplementedException - supportsPeriodQuery()
is false optional - This method must be implemented if
supportsPeriodQuery() is true. void matchAnyPeriod(boolean match)
match - true to match businesses with any period,
false to match customers with no periodmandatory - This method must be implemented. void clearPeriodTerms()
mandatory - This method must be implemented. void matchAncestorBusinessId(Id businessId, boolean match)
Id for this query to match businesses
that have the specified business as an ancestor.businessId - a business Id match - true for a positive match, false
for a negative matchNullArgumentException - businessId is
null mandatory - This method must be implemented. void clearAncestorBusinessIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsAncestorBusinessQuery()
BusinessQuery is available. true if a business query is available,
false otherwisemandatory - This method must be implemented. BusinessQuery getAncestorBusinessQuery()
OR term.UnimplementedException -
supportsAncestorBusinessQuery() is false
optional - This method must be implemented if
supportsAncestorBusinessQuery() is true.
void matchAnyAncestorBusiness(boolean match)
match - true to match businesses with any
ancestor, false to match root businessesmandatory - This method must be implemented. void clearAncestorBusinessTerms()
mandatory - This method must be implemented. void matchDescendantBusinessId(Id businessId, boolean match)
Id for this query to match businesses
that have the specified business as an descendant.businessId - a business Id match - true for a positive match, false
for a negative matchNullArgumentException - businessId is
null mandatory - This method must be implemented. void clearDescendantBusinessIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsDescendantBusinessQuery()
BusinessQuery is available. true if a business query is available,
false otherwisemandatory - This method must be implemented. BusinessQuery getDescendantBusinessQuery()
OR term.UnimplementedException -
supportsDescendantBusinessQuery() is false
optional - This method must be implemented if
supportsDescendantBusinessQuery() is true.
void matchAnyDescendantBusiness(boolean match)
match - true to match businesses with any
descendant, false to match leaf businessesmandatory - This method must be implemented. void clearDescendantBusinessTerms()
mandatory - This method must be implemented. BusinessQueryRecord getBusinessQueryRecord(Type businessRecordType) throws OperationFailedException
Business record Type. Multiple record
retrievals produce a nested OR term.businessRecordType - a business record typeNullArgumentException - businessRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(businessRecordType) is false
mandatory - This method must be implemented.