Interface DemographicQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, Suppliable
This is the query for searching demographics. Each method match
specifies an AND term while multiple invocations of the same
method produce a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the binIdquery terms.voidClears the bin query terms.voidClears the excluded demographicIdquery terms.voidClears the excluded demographic query terms.voidClears the excluded resourceIdquery terms.voidClears the excluded resource query terms.voidClears the demographicIdquery terms.voidClears the demographic query terms.voidClears the exclusive demographicIdquery terms.voidClears the demographic query terms.voidClears the intersecting demographicIdquery terms.voidClears the intersecting demographic query terms.voidClears the included resourceIdquery terms.voidClears the included resource query terms.voidClears the resulting resourceIdquery terms.voidClears the resource query terms.Gets the query for a bin.getDemographicQueryRecord(Type demographicRecordType) Gets the demographic query record corresponding to the givenDemographicrecordType.Gets the query for an excluded demographic.Gets the query for an excluded resource.Gets the query for a demographic.Gets the query for an exclusive demographic.Gets the query for an intersecting demographic.Gets the query for a resource.Gets the query for a resulting resource.voidmatchAnyExcludedDemographic(boolean match) Matches demographics excluding any demographic.voidmatchAnyExcludedResource(boolean match) Matches demographics excluding any resource.voidmatchAnyIncludedDemographic(boolean match) Matches demographics including any demographic.voidmatchAnyIncludedExclusiveDemographic(boolean match) Matches demographics including any exclusive demographic.voidmatchAnyIncludedIntersectingDemographic(boolean match) Matches demographics including any intersecting demographic.voidmatchAnyIncludedResource(boolean match) Matches demographics including any resource.voidmatchAnyResultingResource(boolean match) Matches demographics that have any resulting resource.voidmatchBinId(Id binId, boolean match) Matches mapped to the bin.voidmatchExcludedDemographicId(Id demographicId, boolean match) Matches demographics excluding the given a demographic.voidmatchExcludedResourceId(Id resourceId, boolean match) Matches demographics excluding the given resource.voidmatchIncludedDemographicId(Id demographicId, boolean match) Matches demographics including the given demographic.voidmatchIncludedExclusiveDemographicId(Id demographicId, boolean match) Matches demographics including the given exclusive demographic.voidmatchIncludedIntersectingDemographicId(Id demographicId, boolean match) Matches demographics including the given intersecting demographic.voidmatchIncludedResourceId(Id resourceId, boolean match) Matches demographics including the given resource.voidmatchResultingResourceId(Id resourceId, boolean match) Matches demographics resulting in the given resource.booleanTests if aBinQueryis available.booleanTests if aDemographicQueryis available to match demographics with an excluded demographic.booleanTests if aResourceQueryis available to match demographics with an excluded resource.booleanTests if aDemographicQueryis available.booleanTests if aDemographicQueryis available.booleanTests if aDemographicQueryis available.booleanTests if aResourceQueryis available.booleanTests if aResourceQueryis available to match demographics resulting in a resource.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeModifier and TypeMethodDescriptionvoidClears all recordTypeterms.voidmatchAnyRecord(boolean match) Matches an object that has any record.voidmatchRecordType(Type recordType, boolean match) Sets aTypefor querying objects having records implementing a given record type.Methods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdModifier and TypeMethodDescriptionvoidClears allIdterms.voidAdds anIdto match.Methods inherited from interface OsidObjectQuery
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryModifier and TypeMethodDescriptionvoidClears all commentIdterms.voidClears all comment terms.voidClears all creditIdterms.voidClears all credit terms.voidClears all description terms.voidClears all display name terms.voidClears all genus type terms.voidClears all journal entryIdterms.voidClears all journal entry terms.voidClears all genus type terms.voidClears all relationshipIdterms.voidClears all relationshipIdterms.voidClears all relationship terms.voidClears all stateIdterms.voidClears all state terms.voidClears all statistic terms.voidClears all subjectIdterms.voidClears all subject relevancy terms.voidClears all subject terms.Gets the query for a comment.Gets the query for an ackowledgement credit.Gets the query for a journal entry.Gets the query for relationship.Gets the query for a state.Gets the query for a statistic.Gets the query for a subject.Gets the query for a subject relevancy.voidmatchAnyComment(boolean match) Matches an object that has anyCommentin the givenBook.voidmatchAnyCredit(boolean match) Matches an object that has anyCredit.voidmatchAnyDescription(boolean match) Matches a description that has any value.voidmatchAnyDisplayName(boolean match) Matches any object with a display name.voidmatchAnyGenusType(boolean match) Matches an object that has any genus type.voidmatchAnyJournalEntry(boolean match) Matches an object that has anyJournalEntryin the givenJournal.voidmatchAnyRelationship(boolean match) Matches an object that has anyRelationship.voidmatchAnyState(boolean match) Matches an object that has any mapping to aStatein the givenProcess.voidmatchAnyStatistic(boolean match) Matches an object that has anyStatistic.voidmatchAnySubject(boolean match) Matches an object that has any relationship to aSubject.voidmatchCommentId(Id commentId, boolean match) Matches an object that has the given comment.voidmatchCreditId(Id creditId, boolean match) Matches an object that has the given credit.voidmatchDescription(String description, Type stringMatchType, boolean match) Adds a description name to match.voidmatchDisplayName(String displayName, Type stringMatchType, boolean match) Adds a display name to match.voidmatchGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchJournalEntryId(Id journalEntryId, boolean match) Matches an object that has the given journal entry.voidmatchParentGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchRelationshipId(Id relationshipId, boolean match) Matches an object that has the given relationship.voidmatchRelationshipPeerId(Id peerId, boolean match) Matches an object that has a relationship to the given peerId.voidmatchStateId(Id stateId, boolean match) Matches an object mapped to the given state.voidmatchSubjectId(Id subjectId, boolean match) Matches an object with a relationship to the given subject.booleanTests if aCommentQueryis available.booleanTests if aCreditQueryis available to provide queries of related acknowledgements.booleanTests if aJournalEntryis available to provide queries of journaledOsidObjects.booleanTests if aRelationshipQueryis available.booleanTests if aStateQueryis available to provide queries of processed objects.booleanTests if aStatisticQueryis available to provide statistical queries.booleanTests if aSubjectQueryis available.booleanTests if aRelevancyQueryis available to provide queries about the relationships toSubjects.Methods inherited from interface OsidOperableQuery
clearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperationalModifier and TypeMethodDescriptionvoidClears the active query terms.voidClears the administratively disabled query terms.voidClears the administratively enabled query terms.voidClears the operational query terms.voidmatchActive(boolean match) Matches active.voidmatchDisabled(boolean match) Matches administratively disabled.voidmatchEnabled(boolean match) Matches administratively enabled.voidmatchOperational(boolean match) Matches operational operables.Methods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeModifier and TypeMethodDescriptionvoidClears the match any terms.voidClears all keyword terms.Gets the string matching types supported.voidmatchAny(boolean match) Matches any object.voidmatchKeyword(String keyword, Type stringMatchType, boolean match) Adds a keyword to match.booleansupportsStringMatchType(Type stringMatchType) Tests if the given string matching type is supported.Methods inherited from interface OsidRuleQuery
clearConditionRecordTypeTerms, clearRuleIdTerms, clearRuleTerms, getRuleQuery, matchAnyConditionRecordType, matchAnyRule, matchConditionRecordType, matchRuleId, supportsRuleQueryModifier and TypeMethodDescriptionvoidClears the condition recordTypequery terms.voidClears all ruleIdterms.voidClears all rule terms.getRuleQuery(boolean match) Gets the query for the rule.voidmatchAnyConditionRecordType(boolean match) Matches rules with any condition record type.voidmatchAnyRule(boolean match) Match any associated rule.voidmatchConditionRecordType(Type conditionRecordType, boolean match) Matches a condition record type.voidmatchRuleId(Id ruleId, boolean match) Match theIdof the rule.booleanTests if aRuleQueryfor the rule is available.
-
Method Details
-
matchIncludedDemographicId
Matches demographics including the given demographic.- Parameters:
demographicId- the demographicIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-demographicIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearIncludedDemographicIdTerms
void clearIncludedDemographicIdTerms()Clears the demographicIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsIncludedDemographicQuery
boolean supportsIncludedDemographicQuery()Tests if aDemographicQueryis available.- Returns:
trueif a demographic query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getIncludedDemographicQuery
DemographicQuery getIncludedDemographicQuery()Gets the query for a demographic. Multiple retrievals produce a nestedORterm.- Returns:
- the demographic query
- Throws:
UnimplementedException-supportsIncludedDemographicQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsdIncludedDemographicQuery()} is {@code true} .
-
matchAnyIncludedDemographic
void matchAnyIncludedDemographic(boolean match) Matches demographics including any demographic.- Parameters:
match-truefor demographics that include any demographic,falseto match demographics including no demographics- Compliance:
mandatory- This method must be implemented.
-
clearIncludedDemographicTerms
void clearIncludedDemographicTerms()Clears the demographic query terms.- Compliance:
mandatory- This method must be implemented.
-
matchIncludedIntersectingDemographicId
Matches demographics including the given intersecting demographic.- Parameters:
demographicId- the demographicIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-demographicIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearIncludedIntersectingDemographicIdTerms
void clearIncludedIntersectingDemographicIdTerms()Clears the intersecting demographicIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsIncludedIntersectingDemographicQuery
boolean supportsIncludedIntersectingDemographicQuery()Tests if aDemographicQueryis available.- Returns:
trueif a demographic query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getIncludedIntersectingDemographicQuery
DemographicQuery getIncludedIntersectingDemographicQuery()Gets the query for an intersecting demographic. Multiple retrievals produce a nestedORterm.- Returns:
- the demographic query
- Throws:
UnimplementedException-supportsIncludedDemographicQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsdIncludedDemographicQuery()} is {@code true} .
-
matchAnyIncludedIntersectingDemographic
void matchAnyIncludedIntersectingDemographic(boolean match) Matches demographics including any intersecting demographic.- Parameters:
match-truefor demographics that include any intersecting demographic,falseto match demographics including no intersecting demographics- Compliance:
mandatory- This method must be implemented.
-
clearIncludedIntersectingDemographicTerms
void clearIncludedIntersectingDemographicTerms()Clears the intersecting demographic query terms.- Compliance:
mandatory- This method must be implemented.
-
matchIncludedExclusiveDemographicId
Matches demographics including the given exclusive demographic.- Parameters:
demographicId- the demographicIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-demographicIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearIncludedExclusiveDemographicIdTerms
void clearIncludedExclusiveDemographicIdTerms()Clears the exclusive demographicIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsIncludedExclusiveDemographicQuery
boolean supportsIncludedExclusiveDemographicQuery()Tests if aDemographicQueryis available.- Returns:
trueif a demographic query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getIncludedExclusiveDemographicQuery
DemographicQuery getIncludedExclusiveDemographicQuery()Gets the query for an exclusive demographic. Multiple retrievals produce a nestedORterm.- Returns:
- the demographic query
- Throws:
UnimplementedException-supportsIncludedDemographicQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsdIncludedDemographicQuery()} is {@code true} .
-
matchAnyIncludedExclusiveDemographic
void matchAnyIncludedExclusiveDemographic(boolean match) Matches demographics including any exclusive demographic.- Parameters:
match-truefor demographics that include any exclusive demographic,falseto match demographics including no exclusive demographics- Compliance:
mandatory- This method must be implemented.
-
clearIncludedExclusiveDemographicTerms
void clearIncludedExclusiveDemographicTerms()Clears the demographic query terms.- Compliance:
mandatory- This method must be implemented.
-
matchExcludedDemographicId
Matches demographics excluding the given a demographic.- Parameters:
demographicId- the demographicIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-demographicIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearExcludedDemographicIdTerms
void clearExcludedDemographicIdTerms()Clears the excluded demographicIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsExcludedDemographicQuery
boolean supportsExcludedDemographicQuery()Tests if aDemographicQueryis available to match demographics with an excluded demographic.- Returns:
trueif a demographic query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getExcludedDemographicQuery
DemographicQuery getExcludedDemographicQuery()Gets the query for an excluded demographic. Multiple retrievals produce a nestedORterm.- Returns:
- the demographic query
- Throws:
UnimplementedException-supportsExcludedDemographicQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsdExcludedDemographicQuery()} is {@code true} .
-
matchAnyExcludedDemographic
void matchAnyExcludedDemographic(boolean match) Matches demographics excluding any demographic.- Parameters:
match-truefor demographics with any excluded demographic,falseto match demographics with no excluded demographics- Compliance:
mandatory- This method must be implemented.
-
clearExcludedDemographicTerms
void clearExcludedDemographicTerms()Clears the excluded demographic query terms.- Compliance:
mandatory- This method must be implemented.
-
matchIncludedResourceId
Matches demographics including the given resource.- Parameters:
resourceId- the resourceIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearIncludedResourceIdTerms
void clearIncludedResourceIdTerms()Clears the included resourceIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsIncludedResourceQuery
boolean supportsIncludedResourceQuery()Tests if aResourceQueryis available.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getIncludedResourceQuery
ResourceQuery getIncludedResourceQuery()Gets the query for a resource. Multiple retrievals produce a nestedORterm.- Returns:
- the resource query
- Throws:
UnimplementedException-supportsIncludedResourceQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsdIncludedResourceQuery()} is {@code true} .
-
matchAnyIncludedResource
void matchAnyIncludedResource(boolean match) Matches demographics including any resource.- Parameters:
match-truefor demographics that include any resource,falseto match demographics including no resources- Compliance:
mandatory- This method must be implemented.
-
clearIncludedResourceTerms
void clearIncludedResourceTerms()Clears the included resource query terms.- Compliance:
mandatory- This method must be implemented.
-
matchExcludedResourceId
Matches demographics excluding the given resource.- Parameters:
resourceId- the resourceIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearExcludedResourceIdTerms
void clearExcludedResourceIdTerms()Clears the excluded resourceIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsExcludedResourceQuery
boolean supportsExcludedResourceQuery()Tests if aResourceQueryis available to match demographics with an excluded resource.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getExcludedResourceQuery
ResourceQuery getExcludedResourceQuery()Gets the query for an excluded resource. Multiple retrievals produce a nestedORterm.- Returns:
- the resource query
- Throws:
UnimplementedException-supportsExcludedResourceQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsdExcludedResourceQuery()} is {@code true} .
-
matchAnyExcludedResource
void matchAnyExcludedResource(boolean match) Matches demographics excluding any resource.- Parameters:
match-truefor demographics that exclude any resource,falseto match demographics excluding no resources- Compliance:
mandatory- This method must be implemented.
-
clearExcludedResourceTerms
void clearExcludedResourceTerms()Clears the excluded resource query terms.- Compliance:
mandatory- This method must be implemented.
-
matchResultingResourceId
Matches demographics resulting in the given resource.- Parameters:
resourceId- the resourceIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearResultingResourceIdTerms
void clearResultingResourceIdTerms()Clears the resulting resourceIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsResultingResourceQuery
boolean supportsResultingResourceQuery()Tests if aResourceQueryis available to match demographics resulting in a resource.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getResultingResourceQuery
ResourceQuery getResultingResourceQuery()Gets the query for a resulting resource. Multiple retrievals produce a nestedORterm.- Returns:
- the resource query
- Throws:
UnimplementedException-supportsResultingResourceQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsdResultingResourceQuery()} is {@code true} .
-
matchAnyResultingResource
void matchAnyResultingResource(boolean match) Matches demographics that have any resulting resource.- Parameters:
match-truefor demographics that have any resulting resource,falseto match demographics with no resulting resources- Compliance:
mandatory- This method must be implemented.
-
clearResultingResourceTerms
void clearResultingResourceTerms()Clears the resource query terms.- Compliance:
mandatory- This method must be implemented.
-
matchBinId
Matches mapped to the bin.- Parameters:
binId- the binIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-binIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearBinIdTerms
void clearBinIdTerms()Clears the binIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsBinQuery
boolean supportsBinQuery()Tests if aBinQueryis available.- Returns:
trueif a bin query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getBinQuery
BinQuery getBinQuery()Gets the query for a bin. Multiple retrievals produce a nestedORterm.- Returns:
- the bin query
- Throws:
UnimplementedException-supportsBinQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsBinQuery()} is {@code true} .
-
clearBinTerms
void clearBinTerms()Clears the bin query terms.- Compliance:
mandatory- This method must be implemented.
-
getDemographicQueryRecord
DemographicQueryRecord getDemographicQueryRecord(Type demographicRecordType) throws OperationFailedException Gets the demographic query record corresponding to the givenDemographicrecordType. Multiple record retrievals produce a nestedORterm.- Parameters:
demographicRecordType- a demographic record type- Returns:
- the demographic query record
- Throws:
NullArgumentException-demographicRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(demographicRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-