OSID Logo
OSID Specifications
billing package
Version 3.1.0
Interfaceosid.billing.CategoryQuery
Implementsosid.OsidObjectQuery
Used Byosid.billing.BusinessQuery
osid.billing.CategoryQuerySession
osid.billing.CategorySearchSession
osid.billing.CategorySmartBusinessSession
osid.billing.ItemQuery
Description

This is the query for searching categories. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchEntryId
Description

Sets the entry Id for this query to match categories that have a related entry.

Parametersosid.id.IdentryId 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 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 any related entry.

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

Clears the entry terms.

Compliancemandatory This method must be implemented.
MethodmatchBusinessId
Description

Sets the business Id for this query to match categories assigned to businesses.

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

Clears the business Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsBusinessQuery
Description

Tests if a BusinessQuery is available.

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

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

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

Clears the business terms.

Compliancemandatory This method must be implemented.
MethodgetCategoryQueryRecord
Description

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

Parametersosid.type.TypecategoryRecordType a category record type
Returnosid.billing.records.CategoryQueryRecord the category query record
ErrorsNULL_ARGUMENT categoryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(categoryRecordType) is false
Compliancemandatory This method must be implemented.