OSID Logo
OSID Specifications
relationship package
Version 3.1.0
Interfaceosid.relationship.RelationshipQuery
Implementsosid.OsidRelationshipQuery
Used Byosid.OsidObjectQuery
osid.relationship.FamilyQuery
osid.relationship.RelationshipQuerySession
osid.relationship.RelationshipSearchSession
osid.relationship.RelationshipSmartFamilySession
osid.relationship.rules.RelationshipEnablerQuery
Description

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

MethodmatchSourceId
Description

Matches a relationship peer.

Parametersosid.id.Idpeer peer Id to match
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT peer is null
Compliancemandatory This method must be implemented.
MethodclearSourceIdTerms
Description

Clears the peer Id terms.

Compliancemandatory This method must be implemented.
MethodmatchDestinationId
Description

Matches the other relationship peer.

Parametersosid.id.Idpeer peer Id to match
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT peer is null
Compliancemandatory This method must be implemented.
MethodclearDestinationIdTerms
Description

Clears the other peer Id terms.

Compliancemandatory This method must be implemented.
MethodmatchSamePeerId
Description

Matches circular relationships to the same peer.

Parametersbooleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodclearSamePeerIdTerms
Description

Clears the same peer Id terms.

Compliancemandatory This method must be implemented.
MethodmatchFamilyId
Description

Sets the family Id for this query.

Parametersosid.id.IdfamilyId a family Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT familyId is null
Compliancemandatory This method must be implemented.
MethodclearFamilyIdTerms
Description

Clears the family Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsFamilyQuery
Description

Tests if a FamilyQuery is available.

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

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

Returnosid.relationship.FamilyQuery the family query
ErrorsUNIMPLEMENTED supportsFamilyQuery() is false
Complianceoptional This method must be implemented if supportsFamilyQuery() is true.
MethodclearFamilyTerms
Description

Clears the family terms.

Compliancemandatory This method must be implemented.
MethodgetRelationshipQueryRecord
Description

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

Parametersosid.type.TyperelationshipRecordType a relationship record type
Returnosid.relationship.records.RelationshipQueryRecord the relationship query record
ErrorsNULL_ARGUMENT relationshipRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED hasRecordType(relationshipRecordType) is false
Compliancemandatory This method must be implemented.