Interface ProvisionQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidRelationshipQuery, OsidTemporalQuery, Suppliable
This is the query for searching provisions. Each method match specifies
an AND term while multiple invocations of the same method produce
a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the brokerIdquery terms.voidClears the broker query terms.voidClears the cost query terms.voidClears the distributorIdquery terms.voidClears the distributor query terms.voidClears the due date query terms.voidClears the leased query terms.voidClears the must return query terms.voidClears the provisionableIdquery terms.voidClears the provisionable query terms.voidClears the provision date query terms.voidClears the provision return query terms.voidClears the rate amount query terms.voidClears the rate period query terms.voidClears the recipientIdquery terms.voidClears the recipient query terms.voidClears the requestIdquery terms.voidClears the request query terms.Gets the query for aBroker.Gets the query for a distributor.Gets the query for aProvisionable.getProvisionQueryRecord(Type provisionRecordType) Gets the provision query record corresponding to the givenProvisionrecordType.Gets the query for a provision return.Gets the query for aRecipient.Gets the query for a request.voidmatchAnyCost(boolean match) Matches provisions with any cost.voidmatchAnyDueDate(boolean match) Matches provisions with any due date.voidmatchAnyProvisionReturn(boolean match) Matches provisions with any provision return.voidmatchAnyRateAmount(boolean match) Matches provisions with any rate amount.voidmatchAnyRatePeriod(boolean match) Matches provisions with any rate period.voidmatchAnyRequest(boolean match) Matches provisions with any request.voidmatchBrokerId(Id brokerId, boolean match) Sets the brokerIdfor this query.voidMatches leased provisions with a cost within the given range inclusive.voidmatchDistributorId(Id distributorId, boolean match) Sets the distributorIdfor this query to match provisions assigned to distributors.voidmatchDueDate(DateTime from, DateTime to, boolean match) Matches leased provisions with a due date within the given range inclusive.voidmatchLeased(boolean match) Matches provisions that are leases.voidmatchMustReturn(boolean match) Matches provisions that must be returned.voidmatchProvisionableId(Id provisionableId, boolean match) Sets the provisionableIdfor this query.voidmatchProvisionDate(DateTime from, DateTime to, boolean match) Matches provisions with a provision date in the given range inclusive.voidmatchRateAmount(Currency from, Currency to, boolean match) Matches leased provisions with a rate amount within the given range inclusive.voidmatchRatePeriod(Duration from, Duration to, boolean match) Matches leased provisions with a rate period within the given range inclusive.voidmatchRecipientId(Id resourceId, boolean match) Sets the recipientIdfor this query.voidmatchRequestId(Id requestId, boolean match) Sets the requestIdfor this query.booleanTests if aBrokerQueryis available.booleanTests if aDistributorQueryis available.booleanTests if aProvisionableQueryis available.booleanTests if aProvisionReturnis available.booleanTests if aRecipientQueryis available.booleanTests if aRequestQueryis available.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 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 OsidRelationshipQuery
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQueryModifier and TypeMethodDescriptionvoidClears all stateIdterms.voidClears all end reason state terms.getEndReasonQuery(boolean match) Gets the query for the end reason state.voidmatchAnyEndReason(boolean match) Match any end reason state.voidmatchEndReasonId(Id stateId, boolean match) Match theIdof the end reason state.booleanTests if aStateQueryfor the end reason is available.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
-
matchBrokerId
Sets the brokerIdfor this query.- Parameters:
brokerId- the brokerIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-brokerIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearBrokerIdTerms
void clearBrokerIdTerms()Clears the brokerIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsBrokerQuery
boolean supportsBrokerQuery()Tests if aBrokerQueryis available.- Returns:
trueif a broker query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getBrokerQuery
BrokerQuery getBrokerQuery()Gets the query for aBroker. Multiple retrievals produce a nestedORterm.- Returns:
- the broker query
- Throws:
UnimplementedException-supportsBrokerQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportBrokerQuery()} is {@code true} .
-
clearBrokerTerms
void clearBrokerTerms()Clears the broker query terms.- Compliance:
mandatory- This method must be implemented.
-
matchProvisionableId
Sets the provisionableIdfor this query.- Parameters:
provisionableId- the provisionableIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-provisionableIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearProvisionableIdTerms
void clearProvisionableIdTerms()Clears the provisionableIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsProvisionableQuery
boolean supportsProvisionableQuery()Tests if aProvisionableQueryis available.- Returns:
trueif a provisionable query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getProvisionableQuery
ProvisionableQuery getProvisionableQuery()Gets the query for aProvisionable. Multiple retrievals produce a nestedORterm.- Returns:
- the provisionable query
- Throws:
UnimplementedException-supportsProvisionableQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsProvisionableQuery()} is {@code true} .
-
clearProvisionableTerms
void clearProvisionableTerms()Clears the provisionable query terms.- Compliance:
mandatory- This method must be implemented.
-
matchRecipientId
Sets the recipientIdfor this query.- Parameters:
resourceId- the resourceIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRecipientIdTerms
void clearRecipientIdTerms()Clears the recipientIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsRecipientQuery
boolean supportsRecipientQuery()Tests if aRecipientQueryis available.- Returns:
trueif a recipient query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRecipientQuery
ResourceQuery getRecipientQuery()Gets the query for aRecipient. Multiple retrievals produce a nestedORterm.- Returns:
- the resource query
- Throws:
UnimplementedException-supportsRecipientQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRecipientQuery()} is {@code true} .
-
clearRecipientTerms
void clearRecipientTerms()Clears the recipient query terms.- Compliance:
mandatory- This method must be implemented.
-
matchRequestId
Sets the requestIdfor this query.- Parameters:
requestId- the requestIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-requestIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRequestIdTerms
void clearRequestIdTerms()Clears the requestIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsRequestQuery
boolean supportsRequestQuery()Tests if aRequestQueryis available.- Returns:
trueif a request query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRequestQuery
RequestQuery getRequestQuery()Gets the query for a request. Multiple retrievals produce a nestedORterm.- Returns:
- the request query
- Throws:
UnimplementedException-supportsRequestQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRequestQuery()} is {@code true} .
-
matchAnyRequest
void matchAnyRequest(boolean match) Matches provisions with any request.- Parameters:
match-trueto match provisions with a request,falseto match provisions with no requests- Compliance:
mandatory- This method must be implemented.
-
clearRequestTerms
void clearRequestTerms()Clears the request query terms.- Compliance:
mandatory- This method must be implemented.
-
matchProvisionDate
Matches provisions with a provision date in the given range inclusive.- Parameters:
from- the range startto- the range endmatch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnull- Compliance:
mandatory- This method must be implemented.
-
clearProvisionDateTerms
void clearProvisionDateTerms()Clears the provision date query terms.- Compliance:
mandatory- This method must be implemented.
-
matchLeased
void matchLeased(boolean match) Matches provisions that are leases.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearLeasedTerms
void clearLeasedTerms()Clears the leased query terms.- Compliance:
mandatory- This method must be implemented.
-
matchMustReturn
void matchMustReturn(boolean match) Matches provisions that must be returned.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearMustReturnTerms
void clearMustReturnTerms()Clears the must return query terms.- Compliance:
mandatory- This method must be implemented.
-
matchDueDate
Matches leased provisions with a due date within the given range inclusive.- Parameters:
from- the range startto- the range endmatch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyDueDate
void matchAnyDueDate(boolean match) Matches provisions with any due date.- Parameters:
match-trueto match provisions with a due date,falseto match provisions with no due date- Compliance:
mandatory- This method must be implemented.
-
clearDueDateTerms
void clearDueDateTerms()Clears the due date query terms.- Compliance:
mandatory- This method must be implemented.
-
matchCost
Matches leased provisions with a cost within the given range inclusive.- Parameters:
from- the range startto- the range endmatch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyCost
void matchAnyCost(boolean match) Matches provisions with any cost.- Parameters:
match-trueto match provisions with a cost,falseto match provisions with no cost- Compliance:
mandatory- This method must be implemented.
-
clearCostTerms
void clearCostTerms()Clears the cost query terms.- Compliance:
mandatory- This method must be implemented.
-
matchRateAmount
Matches leased provisions with a rate amount within the given range inclusive.- Parameters:
from- the range startto- the range endmatch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyRateAmount
void matchAnyRateAmount(boolean match) Matches provisions with any rate amount.- Parameters:
match-trueto match provisions with a rate,falseto match provisions with no rate- Compliance:
mandatory- This method must be implemented.
-
clearRateAmountTerms
void clearRateAmountTerms()Clears the rate amount query terms.- Compliance:
mandatory- This method must be implemented.
-
matchRatePeriod
Matches leased provisions with a rate period within the given range inclusive.- Parameters:
from- the range startto- the range endmatch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyRatePeriod
void matchAnyRatePeriod(boolean match) Matches provisions with any rate period.- Parameters:
match-trueto match provisions with a rate period,falseto match provisions with no rate period- Compliance:
mandatory- This method must be implemented.
-
clearRatePeriodTerms
void clearRatePeriodTerms()Clears the rate period query terms.- Compliance:
mandatory- This method must be implemented.
-
supportsProvisionReturnQuery
boolean supportsProvisionReturnQuery()Tests if aProvisionReturnis available.- Returns:
trueif a provision return query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getProvisionReturnQuery
ProvisionReturnQuery getProvisionReturnQuery()Gets the query for a provision return. Multiple retrievals produce a nestedORterm.- Returns:
- the provision return query
- Throws:
UnimplementedException-supportsProvisionReturnQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsProvisionReturnQuery()} is {@code true} .
-
matchAnyProvisionReturn
void matchAnyProvisionReturn(boolean match) Matches provisions with any provision return.- Parameters:
match-trueto match provisions with a provision return,falseto match provisions with no provision return- Compliance:
mandatory- This method must be implemented.
-
clearProvisionReturnTerms
void clearProvisionReturnTerms()Clears the provision return query terms.- Compliance:
mandatory- This method must be implemented.
-
matchDistributorId
Sets the distributorIdfor this query to match provisions assigned to distributors.- Parameters:
distributorId- the distributorIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-distributorIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearDistributorIdTerms
void clearDistributorIdTerms()Clears the distributorIdquery terms.- Compliance:
mandatory- This method must be implemented.
-
supportsDistributorQuery
boolean supportsDistributorQuery()Tests if aDistributorQueryis available.- Returns:
trueif a distributor query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDistributorQuery
DistributorQuery getDistributorQuery()Gets the query for a distributor. Multiple retrievals produce a nestedORterm.- Returns:
- the distributor query
- Throws:
UnimplementedException-supportsDistributorQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsDistributorQuery()} is {@code true} .
-
clearDistributorTerms
void clearDistributorTerms()Clears the distributor query terms.- Compliance:
mandatory- This method must be implemented.
-
getProvisionQueryRecord
ProvisionQueryRecord getProvisionQueryRecord(Type provisionRecordType) throws OperationFailedException Gets the provision query record corresponding to the givenProvisionrecordType. Multiple record retrievals produce a nestedORterm.- Parameters:
provisionRecordType- a provision record type- Returns:
- the provision query record
- Throws:
NullArgumentException-provisionRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(provisionRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-