OSID Logo
OSID Specifications
billing package
Version 3.1.0
Interfaceosid.billing.BusinessQuery
Implementsosid.OsidCatalogQuery
Used Byosid.billing.BusinessQuery
osid.billing.BusinessQuerySession
osid.billing.BusinessSearchSession
osid.billing.CategoryQuery
osid.billing.CustomerQuery
osid.billing.EntryQuery
osid.billing.ItemQuery
osid.billing.PeriodQuery
osid.billing.payment.PayerQuery
osid.billing.payment.PaymentQuery
Description

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.

MethodmatchCustomerId
Description

Sets the customer Id for this query to match customers that have a related customer.

Parametersosid.id.IdcustomerId a customer Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT customerId is null
Compliancemandatory This method must be implemented.
MethodclearCustomerIdTerms
Description

Clears the customer Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsCustomerQuery
Description

Tests if a CustomerQuery is available.

Returnboolean true if a customer query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetCustomerQuery
Description

Gets the query for a customer. Multiple retrievals produce a nested OR term.

Returnosid.billing.CustomerQuery the customer query
ErrorsUNIMPLEMENTED supportsCustomerQuery() is false
Complianceoptional This method must be implemented if supportsCustomerQuery() is true.
MethodmatchAnyCustomer
Description

Matches businesses that have any customer.

Parametersbooleanmatch true to match customers with any customer, false to match customers with no customer
Compliancemandatory This method must be implemented.
MethodclearCustomerTerms
Description

Clears the customer query terms.

Compliancemandatory This method must be implemented.
MethodmatchItemId
Description

Sets the item Id for this query.

Parametersosid.id.IditemId an item Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT itemId is null
Compliancemandatory This method must be implemented.
MethodclearItemIdTerms
Description

Clears the item Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsItemQuery
Description

Tests if an ItemQuery is available.

Returnboolean true if an item query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetItemQuery
Description

Gets the query for an item. Multiple retrievals produce a nested OR term.

Returnosid.billing.ItemQuery the item query
ErrorsUNIMPLEMENTED supportsItemQuery() is false
Complianceoptional This method must be implemented if supportsItemQuery() is true.
MethodmatchAnyItem
Description

Matches businesses that have any item.

Parametersbooleanmatch true to match businesses with any item, false to match businesses with no items
Compliancemandatory This method must be implemented.
MethodclearItemTerms
Description

Clears the item query terms.

Compliancemandatory This method must be implemented.
MethodmatchCategoryId
Description

Sets the catalog Id for this query.

Parametersosid.id.IdcategoryId a category Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT categoryId is null
Compliancemandatory This method must be implemented.
MethodclearCategoryIdTerms
Description

Clears the category Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsCategoryQuery
Description

Tests if a CategoryQuery is available.

Returnboolean true if a category query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetCategoryQuery
Description

Gets the query for a category. Multiple retrievals produce a nested OR term.

Returnosid.billing.CategoryQuery the category query
ErrorsUNIMPLEMENTED supportsCategoryQuery() is false
Complianceoptional This method must be implemented if supportsCategoryQuery() is true.
MethodmatchAnyCategory
Description

Matches businesses that have any category.

Parametersbooleanmatch true to match customers with any category, false to match customers with no category
Compliancemandatory This method must be implemented.
MethodclearCategoryTerms
Description

Clears the category query terms.

Compliancemandatory This method must be implemented.
MethodmatchEntryId
Description

Sets the entry Id for this query.

Parametersosid.id.IditemId an entry Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT entryId is null
Compliancemandatory This method must be implemented.
MethodclearEntryIdTerms
Description

Clears the entry Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsEntryQuery
Description

Tests if an EntryQuery is available.

Returnboolean true if an entry query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetEntryQuery
Description

Gets the query for an entry. Multiple retrievals produce a nested OR term.

Returnosid.billing.EntryQuery the entry query
ErrorsUNIMPLEMENTED supportsEntryQuery() is false
Complianceoptional This method must be implemented if supportsEntryQuery() is true.
MethodmatchAnyEntry
Description

Matches businesses that have any entry.

Parametersbooleanmatch true to match businesses with any entry, false to match businesses with no entries
Compliancemandatory This method must be implemented.
MethodclearEntryTerms
Description

Clears the entry query terms.

Compliancemandatory This method must be implemented.
MethodmatchPeriodId
Description

Sets the period Id for this query to match catalogs containing terms.

Parametersosid.id.IdperiodId the period Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT periodId is null
Compliancemandatory This method must be implemented.
MethodclearPeriodIdTerms
Description

Clears the period Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsPeriodQuery
Description

Tests if a PeriodQuery is available.

Returnboolean true if a period query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetPeriodQuery
Description

Gets the query for a period Multiple retrievals produce a nested OR term.

Returnosid.billing.PeriodQuery the period query
ErrorsUNIMPLEMENTED supportsPeriodQuery() is false
Complianceoptional This method must be implemented if supportsPeriodQuery() is true.
MethodmatchAnyPeriod
Description

Matches businesses that have any period.

Parametersbooleanmatch true to match businesses with any period, false to match customers with no period
Compliancemandatory This method must be implemented.
MethodclearPeriodTerms
Description

Clears the period query terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorBusinessId
Description

Sets the business Id for this query to match businesses that have the specified business as an ancestor.

Parametersosid.id.IdbusinessId a business Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT businessId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorBusinessIdTerms
Description

Clears the ancestor business Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorBusinessQuery
Description

Tests if a BusinessQuery is available.

Returnboolean true if a business query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorBusinessQuery
Description

Gets the query for a business. Multiple retrievals produce a nested OR term.

Returnosid.billing.BusinessQuery the business query
ErrorsUNIMPLEMENTED supportsAncestorBusinessQuery() is false
Complianceoptional This method must be implemented if supportsAncestorBusinessQuery() is true.
MethodmatchAnyAncestorBusiness
Description

Matches businesses with any business ancestor.

Parametersbooleanmatch true to match businesses with any ancestor, false to match root businesses
Compliancemandatory This method must be implemented.
MethodclearAncestorBusinessTerms
Description

Clears the ancestor business query terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantBusinessId
Description

Sets the business Id for this query to match businesses that have the specified business as a descendant.

Parametersosid.id.IdbusinessId a business Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT businessId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantBusinessIdTerms
Description

Clears the descendant business Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantBusinessQuery
Description

Tests if a BusinessQuery is available.

Returnboolean true if a business query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantBusinessQuery
Description

Gets the query for a business. Multiple retrievals produce a nested OR term.

Returnosid.billing.BusinessQuery the business query
ErrorsUNIMPLEMENTED supportsDescendantBusinessQuery() is false
Complianceoptional This method must be implemented if supportsDescendantBusinessQuery() is true.
MethodmatchAnyDescendantBusiness
Description

Matches businesses with any descendant business.

Parametersbooleanmatch true to match businesses with any descendant, false to match leaf businesses
Compliancemandatory This method must be implemented.
MethodclearDescendantBusinessTerms
Description

Clears the descendant business query terms.

Compliancemandatory This method must be implemented.
MethodgetBusinessQueryRecord
Description

Gets the business query record corresponding to the given Business record Type .Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypebusinessRecordType a business record type
Returnosid.billing.records.BusinessQueryRecord the business query record
ErrorsNULL_ARGUMENT businessRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(businessRecordType) is false
Compliancemandatory This method must be implemented.