OSID Logo
OSID Specifications
offering package
Version 3.0.0
Interfaceosid.offering.ResultQuery
Implementsosid.OsidObjectQuery
osid.OsidTemporalQuery
osid.OsidSubjugateableQuery
Used Byosid.offering.CatalogueQuery
osid.offering.ResultQuerySession
osid.offering.ResultSearchSession
osid.offering.ResultSmartCatalogueSession
Description

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

MethodmatchParticipantId
Description

Sets a participant Id .

Parametersosid.id.IdparticipantIda participant Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTparticipantId is null
CompliancemandatoryThis method must be implemented.
MethodclearParticipantIdTerms
Description

Clears all participant Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsParticipantQuery
Description

Tests if a ParticipantUnitQuery is available.

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

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

Returnosid.offering.ParticipantQuerythe participant query
ErrorsUNIMPLEMENTEDsupportsParticipantQuery() is false
ComplianceoptionalThis method must be implemented if supportsParticipantQuery() is true .
MethodclearParticipantTerms
Description

Clears all participant terms.

CompliancemandatoryThis method must be implemented.
MethodmatchGradeId
Description

Sets a grade Id .

Parametersosid.id.IdgradeIda grade Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTgradeId is null
CompliancemandatoryThis method must be implemented.
MethodclearGradeIdTerms
Description

Clears all grade Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsGradeQuery
Description

Tests if a GradetQuery is available.

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

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

Returnosid.grading.GradeQuerythe grade query
ErrorsUNIMPLEMENTEDsupportsGradeQuery() is false
ComplianceoptionalThis method must be implemented if supportsGradeQuery() is true .
MethodmatchAnyGrade
Description

Matches results with any grade.

Parametersbooleanmatchtrue to match results with any grade, false to match results with no grade
CompliancemandatoryThis method must be implemented.
MethodclearGradeTerms
Description

Clears all grade terms.

CompliancemandatoryThis method must be implemented.
MethodmatchValue
Description

Matches a value between the given range inclusive.

Parametersdecimalfroma starting range
decimaltoan ending range
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTfrom is greater than to
CompliancemandatoryThis method must be implemented.
MethodmatchAnyValue
Description

Matches results with any value.

Parametersbooleanmatchtrue to match results with any value, false to match results with no value
CompliancemandatoryThis method must be implemented.
MethodclearValueTerms
Description

Clears all value terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCatalogueId
Description

Sets the catalogue Id for this query to match results assigned to catalogues.

Parametersosid.id.IdcatalogueIda catalogue Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcatalogueId is null
CompliancemandatoryThis method must be implemented.
MethodclearCatalogueIdTerms
Description

Clears all catalogue Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCatalogueQuery
Description

Tests if a CatalogueQuery is available.

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

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

Returnosid.offering.CatalogueQuerythe catalogue query
ErrorsUNIMPLEMENTEDsupportsCatalogueQuery() is false
ComplianceoptionalThis method must be implemented if supportsCatalogueQuery() is true .
MethodclearCatalogueTerms
Description

Clears all catalogue terms.

CompliancemandatoryThis method must be implemented.
MethodgetResultQueryRecord
Description

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

Parametersosid.type.TyperesultRecordTypea result record type
Returnosid.offering.records.ResultQueryRecordthe result query record
ErrorsNULL_ARGUMENTresultRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(resultRecordType) is false
CompliancemandatoryThis method must be implemented.