OSID Logo
OSID Specifications
financials package
Version 3.0.0
Interfaceosid.financials.BusinessQuery
Implementsosid.OsidCatalogQuery
Used Byosid.financials.AccountQuery
osid.financials.ActivityQuery
osid.financials.BusinessQuery
osid.financials.BusinessQuerySession
osid.financials.BusinessSearchSession
osid.financials.FiscalPeriodQuery
osid.financials.budgeting.BudgetEntryQuery
osid.financials.budgeting.BudgetQuery
osid.financials.posting.PostEntryQuery
osid.financials.posting.PostQuery
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 .

MethodmatchAccountId
Description

Sets the account Id for this query.

Parametersosid.id.IdaccountIdan account Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTaccountId is null
CompliancemandatoryThis method must be implemented.
MethodclearAccountIdTerms
Description

Clears the account Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAccountQuery
Description

Tests if an AccountQuery is available.

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

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

Returnosid.financials.AccountQuerythe account query
ErrorsUNIMPLEMENTEDsupportsAccountQuery() is false
ComplianceoptionalThis method must be implemented if supportsAccountQuery() is true .
MethodmatchAnyAccount
Description

Matches businesses that have any account.

Parametersbooleanmatchtrue to match businesses with any account, false to match businesses with no accounts
CompliancemandatoryThis method must be implemented.
MethodclearAccountTerms
Description

Clears the account query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchActivityId
Description

Sets the activity Id for this query.

Parametersosid.id.IdactivityIdan activity Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTactivityId is null
CompliancemandatoryThis method must be implemented.
MethodclearActivityIdTerms
Description

Clears the activity Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsActivityQuery
Description

Tests if an ActivityQuery is available.

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

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

Returnosid.financials.ActivityQuerythe activity query
ErrorsUNIMPLEMENTEDsupportsActivityQuery() is false
ComplianceoptionalThis method must be implemented if supportsActivityQuery() is true .
MethodmatchAnyActivity
Description

Matches businesses that have any activity.

Parametersbooleanmatchtrue to match businesses with any activity, false to match businesses with no activities
CompliancemandatoryThis method must be implemented.
MethodclearActivityTerms
Description

Clears the activity query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFiscalPeriodId
Description

Sets the fiscal period Id for this query.

Parametersosid.id.IdfiscalPeriodIda fiscal period Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTfiscalPeriodId is null
CompliancemandatoryThis method must be implemented.
MethodclearFiscalPeriodIdTerms
Description

Clears the fiscal period Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsFiscalPeriodQuery
Description

Tests if a FiscalPeriodQuery is available.

Returnbooleantrue if a fiscal period query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetFiscalPeriodQuery
Description

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

Returnosid.financials.FiscalPeriodQuerythe fiscal period query
ErrorsUNIMPLEMENTEDsupportsFiscalPeriodQuery() is false
ComplianceoptionalThis method must be implemented if supportsFiscalPeriodQuery() is true .
MethodmatchAnyFiscalPeriod
Description

Matches businesses that have any fiscal period.

Parametersbooleanmatchtrue to match businesses with any fiscal period, false to match businesses with no fiscal period
CompliancemandatoryThis method must be implemented.
MethodclearFiscalPeriodTerms
Description

Clears the fiscal period query terms.

CompliancemandatoryThis 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.IdbusinessIda business Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTbusinessId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorBusinessIdTerms
Description

Clears the ancestor business Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorBusinessQuery
Description

Tests if a BusinessQuery is available.

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

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

Returnosid.financials.BusinessQuerythe business query
ErrorsUNIMPLEMENTEDsupportsAncestorBusinessQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorBusinessQuery() is true .
MethodmatchAnyAncestorBusiness
Description

Matches businesses with any business ancestor.

Parametersbooleanmatchtrue to match businesses with any ancestor, false to match root businesses
CompliancemandatoryThis method must be implemented.
MethodclearAncestorBusinessTerms
Description

Clears the ancestor business query terms.

CompliancemandatoryThis 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.IdbusinessIda business Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTbusinessId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBusinessIdTerms
Description

Clears the descendant business Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantBusinessQuery
Description

Tests if a BusinessQuery is available.

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

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

Returnosid.financials.BusinessQuerythe business query
ErrorsUNIMPLEMENTEDsupportsDescendantBusinessQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantBusinessQuery() is true .
MethodmatchAnyDescendantBusiness
Description

Matches agencies with any descendant business.

Parametersbooleanmatchtrue to match businesses with any descendant, false to match leaf businesses
CompliancemandatoryThis method must be implemented.
MethodclearDescendantBusinessTerms
Description

Clears the descendant business query terms.

CompliancemandatoryThis 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.TypebusinessRecordTypea business record type
Returnosid.financials.records.BusinessQueryRecordthe business query record
ErrorsNULL_ARGUMENTbusinessRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(businessRecordType) is false
CompliancemandatoryThis method must be implemented.