OSID Logo
OSID Specifications
offering package
Version 3.1.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.IdparticipantId a participant Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT participantId is null
Compliancemandatory This method must be implemented.
MethodclearParticipantIdTerms
Description

Clears all participant Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsParticipantQuery
Description

Tests if a ParticipantUnitQuery is available.

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

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

Returnosid.offering.ParticipantQuery the participant query
ErrorsUNIMPLEMENTED supportsParticipantQuery() is false
Complianceoptional This method must be implemented if supportsParticipantQuery() is true.
MethodclearParticipantTerms
Description

Clears all participant terms.

Compliancemandatory This method must be implemented.
MethodmatchGradeId
Description

Sets a grade Id.

Parametersosid.id.IdgradeId a grade Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT gradeId is null
Compliancemandatory This method must be implemented.
MethodclearGradeIdTerms
Description

Clears all grade Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsGradeQuery
Description

Tests if a GradetQuery is available.

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

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

Returnosid.grading.GradeQuery the grade query
ErrorsUNIMPLEMENTED supportsGradeQuery() is false
Complianceoptional This method must be implemented if supportsGradeQuery() is true.
MethodmatchAnyGrade
Description

Matches results with any grade.

Parametersbooleanmatch true to match results with any grade, false to match results with no grade
Compliancemandatory This method must be implemented.
MethodclearGradeTerms
Description

Clears all grade terms.

Compliancemandatory This method must be implemented.
MethodmatchValue
Description

Matches a value between the given range inclusive.

Parametersdecimalfrom a starting range
decimalto an ending range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
Compliancemandatory This method must be implemented.
MethodmatchAnyValue
Description

Matches results with any value.

Parametersbooleanmatch true to match results with any value, false to match results with no value
Compliancemandatory This method must be implemented.
MethodclearValueTerms
Description

Clears all value terms.

Compliancemandatory This method must be implemented.
MethodmatchCatalogueId
Description

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

Parametersosid.id.IdcatalogueId a catalogue Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT catalogueId is null
Compliancemandatory This method must be implemented.
MethodclearCatalogueIdTerms
Description

Clears all catalogue Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCatalogueQuery
Description

Tests if a CatalogueQuery is available.

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

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

Returnosid.offering.CatalogueQuery the catalogue query
ErrorsUNIMPLEMENTED supportsCatalogueQuery() is false
Complianceoptional This method must be implemented if supportsCatalogueQuery() is true.
MethodclearCatalogueTerms
Description

Clears all catalogue terms.

Compliancemandatory This 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.TyperesultRecordType a result record type
Returnosid.offering.records.ResultQueryRecord the result query record
ErrorsNULL_ARGUMENT resultRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(resultRecordType) is false
Compliancemandatory This method must be implemented.