OSID Logo
OSID Specifications
billing package
Version 3.0.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.IdentryIdan entry Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTentryId is null
CompliancemandatoryThis method must be implemented.
MethodclearEntryIdTerms
Description

Clears the entry Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEntryQuery
Description

Tests if an EntryQuery is available.

Returnbooleantrue if an entry query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetEntryQuery
Description

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

Returnosid.billing.EntryQuerythe entry query
ErrorsUNIMPLEMENTEDsupportsEntryQuery() is false
ComplianceoptionalThis method must be implemented if supportsEntryQuery() is true .
MethodmatchAnyEntry
Description

Matches any related entry.

Parametersbooleanmatchtrue to match categories with any entry, false to match categories with no entries
CompliancemandatoryThis method must be implemented.
MethodclearEntryTerms
Description

Clears the entry terms.

CompliancemandatoryThis method must be implemented.
MethodmatchBusinessId
Description

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

Parametersosid.id.IdbusinessIdthe business Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTbusinessId is null
CompliancemandatoryThis method must be implemented.
MethodclearBusinessIdTerms
Description

Clears the business Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBusinessQuery
Description

Tests if a BusinessQuery is available.

Returnbooleantrue if a business query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBusinessQuery
Description

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

Returnosid.billing.BusinessQuerythe business query
ErrorsUNIMPLEMENTEDsupportsBusinessQuery() is false
ComplianceoptionalThis method must be implemented if supportsBusinessQuery() is true .
MethodclearBusinessTerms
Description

Clears the business terms.

CompliancemandatoryThis 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.TypecategoryRecordTypea category record type
Returnosid.billing.records.CategoryQueryRecordthe category query record
ErrorsNULL_ARGUMENTcategoryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(categoryRecordType) is false
CompliancemandatoryThis method must be implemented.