Interface EventQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidContainableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidTemporalQuery, Suppliable
This is the query for searching events. Each method match request
produces an AND term while multiple invocations of a method
produces a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the calendarIdterms.voidClears the calendar terms.voidClears the commitmentIdterms.voidClears the commitment terms.voidClears the containing eventIdterms.voidClears the containing event terms.voidClears the cooordinate terms.voidClears the duration terms.voidClears the implcit terms.voidClears the location description terms.voidClears the locationIdterms.voidClears the location terms.voidClears the recurring events type terms.voidClears the offset event terms.voidClears the recurring event terms.voidClears the recurring event terms.voidClears the spatial unit terms.voidClears the sponsorIdterms.voidClears the sponsor terms.voidClears the superseding events type terms.voidClears the superseding event terms.Gets the query for a calendar.Gets the query for a commitment.Gets the query for a containing event.getEventQueryRecord(Type eventRecordType) Gets the event query record corresponding to the givenEventrecordType.Multiple retrievals produce a nestedORterm.Gets the query for a location.Gets the query for an offset event.Gets the query for a recurring event.Gets the query for a sponsor.Gets the query for a superseding event.voidmatchAnyCommitment(boolean match) Matches an event that has any commitment.voidmatchAnyContainingEvent(boolean match) Matches events with any ancestor event.voidmatchAnyDuration(boolean match) Matches an event that has any duration.voidmatchAnyLocation(boolean match) Matches an event that has any location assigned.voidmatchAnyLocationDescription(boolean match) Matches an event that has any location description assigned.voidmatchAnyOffsetEvent(boolean match) Matches any offset event.voidmatchAnyRecurringEvent(boolean match) Matches an event that is part of any recurring event.voidmatchAnySupersedingEvent(boolean match) Matches any superseding event.voidmatchCalendarId(Id calendarId, boolean match) Sets the calendarIdfor this query.voidmatchCommitmentId(Id commitmentId, boolean match) Sets the commitmentIdfor this query.voidmatchContainingEventId(Id eventId, boolean match) Sets the eventIdfor this query to match events that have the specified event as an ancestor.voidmatchCoordinate(Coordinate coordinate, boolean match) Matches events whose locations contain the given coordinate.voidmatchDuration(Duration low, Duration high, boolean match) Matches the event duration between the given range inclusive.voidmatchImplicit(boolean match) Matches an event that is implicitly generated.voidmatchLocationDescription(String location, Type stringMatchType, boolean match) Matches the location description string.voidmatchLocationId(Id locationId, boolean match) Sets the locationIdfor this query.voidmatchOffsetEventId(Id offsetEventId, boolean match) Matches events that relates to the offset event.voidmatchRecurringEventId(Id recurringEventId, boolean match) Matches events that related to the recurring event.voidmatchSpatialUnit(SpatialUnit spatialUnit, boolean match) Matches events whose locations fall within the given spatial unit.voidmatchSponsorId(Id sponsorId, boolean match) Sets the sponsorIdfor this query.voidmatchSupersedingEventId(Id supersedingEventId, boolean match) Matches events that relate to the superseding event.booleanTests if aCalendarQueryis available for querying calendars.booleanTests if aCommitmentQueryis available for querying recurring event terms.booleanTests if a containing event query is available.booleanTests if aLocationQueryis available for querying locations.booleanTests if anOffsetEventQueryis available for querying offset events.booleanTests if aRecurringEventQueryis available for querying recurring events.booleanTests if aLocationQueryis available for querying sponsors.booleanTests if aSupersedingEventQueryis available for querying offset events.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 OsidContainableQuery
clearSequesteredTerms, matchSequesteredModifier and TypeMethodDescriptionvoidClears the sequestered query terms.voidmatchSequestered(boolean match) Match containables that are sequestered.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 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 OsidTemporalQuery
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDateModifier and TypeMethodDescriptionvoidClears the date query terms.voidClears the effective query terms.voidClears the end date query terms.voidClears the start date query terms.voidmatchAnyEndDate(boolean match) Matches temporals with any end date set.voidmatchAnyStartDate(boolean match) Matches temporals with any start date set.voidMatches temporals where the given date range falls entirely between the start and end dates inclusive.voidmatchEffective(boolean match) Match effective objects where the current date falls within the start and end dates inclusive.voidmatchEndDate(DateTime start, DateTime end, boolean match) Matches temporals whose effective end date falls in between the given dates inclusive.voidmatchStartDate(DateTime start, DateTime end, boolean match) Matches temporals whose start date falls in between the given dates inclusive.
-
Method Details
-
matchImplicit
void matchImplicit(boolean match) Matches an event that is implicitly generated.- Parameters:
match-trueto match events implicitly generated,falseto match events explicitly defined- Compliance:
mandatory- This method must be implemented.
-
clearImplicitTerms
void clearImplicitTerms()Clears the implcit terms.- Compliance:
mandatory- This method must be implemented.
-
matchDuration
Matches the event duration between the given range inclusive.- Parameters:
low- low duration rangehigh- high duration rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-highis less thanlowNullArgumentException-highorlowisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyDuration
void matchAnyDuration(boolean match) Matches an event that has any duration.- Parameters:
match-trueto match events with any duration,falseto match events with no start time- Compliance:
mandatory- This method must be implemented.
-
clearDurationTerms
void clearDurationTerms()Clears the duration terms.- Compliance:
mandatory- This method must be implemented.
-
matchRecurringEventId
Matches events that related to the recurring event.- Parameters:
recurringEventId- anIdfor a recurring eventmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-recurringEventIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRecurringEventIdTerms
void clearRecurringEventIdTerms()Clears the recurring event terms.- Compliance:
mandatory- This method must be implemented.
-
supportsRecurringEventQuery
boolean supportsRecurringEventQuery()Tests if aRecurringEventQueryis available for querying recurring events.- Returns:
trueif a recurring event query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRecurringEventQuery
RecurringEventQuery getRecurringEventQuery()Gets the query for a recurring event. Multiple retrievals produce a nestedORterm.- Returns:
- the recurring event query
- Throws:
UnimplementedException-supportsRecurringEventQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRecurringEventQuery()} is {@code true} .
-
matchAnyRecurringEvent
void matchAnyRecurringEvent(boolean match) Matches an event that is part of any recurring event.- Parameters:
match-trueto match events part of any recurring event,falseto match only standalone events- Compliance:
mandatory- This method must be implemented.
-
clearRecurringEventTerms
void clearRecurringEventTerms()Clears the recurring event terms.- Compliance:
mandatory- This method must be implemented.
-
matchSupersedingEventId
Matches events that relate to the superseding event.- Parameters:
supersedingEventId- anIdfor a superseding eventmatch-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearSupersedingEventIdTerms
void clearSupersedingEventIdTerms()Clears the superseding events type terms.- Compliance:
mandatory- This method must be implemented.
-
supportsSupersedingEventQuery
boolean supportsSupersedingEventQuery()Tests if aSupersedingEventQueryis available for querying offset events.- Returns:
trueif a superseding event query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSupersedingEventQuery
SupersedingEventQuery getSupersedingEventQuery()Gets the query for a superseding event. Multiple retrievals produce a nestedORterm.- Returns:
- the superseding event query
- Throws:
UnimplementedException-supportsSupersedingEventQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSupersedingEventQuery()} is {@code true} .
-
matchAnySupersedingEvent
void matchAnySupersedingEvent(boolean match) Matches any superseding event.- Parameters:
match-trueto match any superseding events,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
clearSupersedingEventTerms
void clearSupersedingEventTerms()Clears the superseding event terms.- Compliance:
mandatory- This method must be implemented.
-
matchOffsetEventId
Matches events that relates to the offset event.- Parameters:
offsetEventId- anIdfor an offset eventmatch-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearOffsetEventIdTerms
void clearOffsetEventIdTerms()Clears the recurring events type terms.- Compliance:
mandatory- This method must be implemented.
-
supportsOffsetEventQuery
boolean supportsOffsetEventQuery()Tests if anOffsetEventQueryis available for querying offset events.- Returns:
trueif an offset event query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getOffsetEventQuery
OffsetEventQuery getOffsetEventQuery()Gets the query for an offset event. Multiple retrievals produce a nestedORterm.- Returns:
- the offset event query
- Throws:
UnimplementedException-supportsOffsetEventQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsOffsetEventQuery()} is {@code true} .
-
matchAnyOffsetEvent
void matchAnyOffsetEvent(boolean match) Matches any offset event.- Parameters:
match-trueto match any offset events,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
clearOffsetEventTerms
void clearOffsetEventTerms()Clears the offset event terms.- Compliance:
mandatory- This method must be implemented.
-
matchLocationDescription
Matches the location description string.- Parameters:
location- location stringstringMatchType- string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-locationis not ofstringMatchTypeNullArgumentException-locationorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyLocationDescription
void matchAnyLocationDescription(boolean match) Matches an event that has any location description assigned.- Parameters:
match-trueto match events with any location description,falseto match events with no location description- Compliance:
mandatory- This method must be implemented.
-
clearLocationDescriptionTerms
void clearLocationDescriptionTerms()Clears the location description terms.- Compliance:
mandatory- This method must be implemented.
-
matchLocationId
Sets the locationIdfor this query.- Parameters:
locationId- a locationIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-locationIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearLocationIdTerms
void clearLocationIdTerms()Clears the locationIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsLocationQuery
boolean supportsLocationQuery()Tests if aLocationQueryis available for querying locations.- Returns:
trueif a location query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLocationQuery
LocationQuery getLocationQuery()Gets the query for a location. Multiple retrievals produce a nestedORterm.- Returns:
- the location query
- Throws:
UnimplementedException-supportsLocationQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLocationQuery()} is {@code true} .
-
matchAnyLocation
void matchAnyLocation(boolean match) Matches an event that has any location assigned.- Parameters:
match-trueto match events with any location,falseto match events with no location- Compliance:
mandatory- This method must be implemented.
-
clearLocationTerms
void clearLocationTerms()Clears the location terms.- Compliance:
mandatory- This method must be implemented.
-
matchSponsorId
Sets the sponsorIdfor this query.- Parameters:
sponsorId- a sponsorIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-sponsorIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSponsorIdTerms
void clearSponsorIdTerms()Clears the sponsorIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsSponsorQuery
boolean supportsSponsorQuery()Tests if aLocationQueryis available for querying sponsors.- Returns:
trueif a sponsor query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSponsorQuery
ResourceQuery getSponsorQuery()Gets the query for a sponsor. Multiple retrievals produce a nestedORterm.- Returns:
- the sponsor query
- Throws:
UnimplementedException-supportsSponsorQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSponsorQuery()} is {@code true} .
-
clearSponsorTerms
void clearSponsorTerms()Clears the sponsor terms.- Compliance:
mandatory- This method must be implemented.
-
matchCoordinate
Matches events whose locations contain the given coordinate.- Parameters:
coordinate- a coordinatematch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-coordinateisnull- Compliance:
mandatory- This method must be implemented.
-
clearCoordinateTerms
void clearCoordinateTerms()Clears the cooordinate terms.- Compliance:
mandatory- This method must be implemented.
-
matchSpatialUnit
Matches events whose locations fall within the given spatial unit.- Parameters:
spatialUnit- a spatial unitmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-spatialUnitisnull- Compliance:
mandatory- This method must be implemented.
-
clearSpatialUnitTerms
void clearSpatialUnitTerms()Clears the spatial unit terms.- Compliance:
mandatory- This method must be implemented.
-
matchCommitmentId
Sets the commitmentIdfor this query.- Parameters:
commitmentId- a commitmentIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-commitmentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCommitmentIdTerms
void clearCommitmentIdTerms()Clears the commitmentIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsCommitmentQuery
boolean supportsCommitmentQuery()Tests if aCommitmentQueryis available for querying recurring event terms.- Returns:
trueif a commitment query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCommitmentQuery
CommitmentQuery getCommitmentQuery()Gets the query for a commitment. Multiple retrievals produce a nestedORterm.- Returns:
- the commitment query
- Throws:
UnimplementedException-supportsCommitmentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCommitmentQuery()} is {@code true} .
-
matchAnyCommitment
void matchAnyCommitment(boolean match) Matches an event that has any commitment.- Parameters:
match-trueto match events with any commitment,falseto match events with no commitments- Compliance:
mandatory- This method must be implemented.
-
clearCommitmentTerms
void clearCommitmentTerms()Clears the commitment terms.- Compliance:
mandatory- This method must be implemented.
-
matchContainingEventId
Sets the eventIdfor this query to match events that have the specified event as an ancestor.- Parameters:
eventId- an eventIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-eventIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearContainingEventIdTerms
void clearContainingEventIdTerms()Clears the containing eventIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsContainingEventQuery
boolean supportsContainingEventQuery()Tests if a containing event query is available.- Returns:
trueif a containing event query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getContainingEventQuery
EventQuery getContainingEventQuery()Gets the query for a containing event.- Returns:
- the containing event query
- Throws:
UnimplementedException-supportsContainingEventQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsContainingEventQuery()} is {@code true} .
-
matchAnyContainingEvent
void matchAnyContainingEvent(boolean match) Matches events with any ancestor event.- Parameters:
match-trueto match events with any ancestor event,falseto match events with no ancestor events- Compliance:
mandatory- This method must be implemented.
-
clearContainingEventTerms
void clearContainingEventTerms()Clears the containing event terms.- Compliance:
mandatory- This method must be implemented.
-
matchCalendarId
Sets the calendarIdfor this query.- Parameters:
calendarId- a calendarIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-calendarIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCalendarIdTerms
void clearCalendarIdTerms()Clears the calendarIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsCalendarQuery
boolean supportsCalendarQuery()Tests if aCalendarQueryis available for querying calendars.- Returns:
trueif a calendar query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCalendarQuery
CalendarQuery getCalendarQuery()Gets the query for a calendar. Multiple retrievals produce a nestedORterm.- Returns:
- the calendar query
- Throws:
UnimplementedException-supportsCalendarQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCalendarQuery()} is {@code true} .
-
clearCalendarTerms
void clearCalendarTerms()Clears the calendar terms.- Compliance:
mandatory- This method must be implemented.
-
getEventQueryRecord
Gets the event query record corresponding to the givenEventrecordType.Multiple retrievals produce a nestedORterm.- Parameters:
eventRecordType- an event query record type- Returns:
- the event query record
- Throws:
NullArgumentException-eventRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(eventRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-