public interface ProvisionQuery extends OsidRelationshipQuery
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.
Modifier and Type | Method and Description |
---|---|
void |
clearBrokerIdTerms()
Clears the broker
Id query terms. |
void |
clearBrokerTerms()
Clears the broker query terms.
|
void |
clearCostTerms()
Clears the cost query terms.
|
void |
clearDistributorIdTerms()
Clears the distributor
Id query terms. |
void |
clearDistributorTerms()
Clears the distributor query terms.
|
void |
clearDueDateTerms()
Clears the due date query terms.
|
void |
clearLeasedTerms()
Clears the leased query terms.
|
void |
clearMustReturnTerms()
Clears the must return query terms.
|
void |
clearProvisionableIdTerms()
Clears the provisionable
Id query terms. |
void |
clearProvisionableTerms()
Clears the provisionable query terms.
|
void |
clearProvisionDateTerms()
Clears the provision date query terms.
|
void |
clearProvisionReturnTerms()
Clears the provision return query terms.
|
void |
clearRateAmountTerms()
Clears the rate amount query terms.
|
void |
clearRatePeriodTerms()
Clears the rate period query terms.
|
void |
clearRecipientIdTerms()
Clears the recipient
Id query terms. |
void |
clearRecipientTerms()
Clears the recipient query terms.
|
void |
clearRequestIdTerms()
Clears the request
Id query terms. |
void |
clearRequestTerms()
Clears the request query terms.
|
BrokerQuery |
getBrokerQuery()
Gets the query for a
Broker. |
DistributorQuery |
getDistributorQuery()
Gets the query for a distributor.
|
ProvisionableQuery |
getProvisionableQuery()
Gets the query for a
Provisionable. |
ProvisionQueryRecord |
getProvisionQueryRecord(Type provisionRecordType)
Gets the provision query record corresponding to the given
Provision record Type. |
ProvisionReturnQuery |
getProvisionReturnQuery()
Gets the query for a provision return.
|
ResourceQuery |
getRecipientQuery()
Gets the query for a
Recipient. |
RequestQuery |
getRequestQuery()
Gets the query for a request.
|
void |
matchAnyCost(boolean match)
Matches provisions with any cost.
|
void |
matchAnyDueDate(boolean match)
Matches provisions with any due date.
|
void |
matchAnyProvisionReturn(boolean match)
Matches provisions with any provision return.
|
void |
matchAnyRateAmount(boolean match)
Matches provisions with any rate amount.
|
void |
matchAnyRatePeriod(boolean match)
Matches provisions with any rate period.
|
void |
matchAnyRequest(boolean match)
Matches provisions with any request.
|
void |
matchBrokerId(Id brokerId,
boolean match)
Sets the broker
Id for this query. |
void |
matchCost(Currency from,
Currency to,
boolean match)
Matches leased provisions with a cost within the given range
inclusive.
|
void |
matchDistributorId(Id distributorId,
boolean match)
Sets the distributor
Id for this query to match
provisions assigned to distributors. |
void |
matchDueDate(DateTime from,
DateTime to,
boolean match)
Matches leased provisions with a due date within the given range
inclusive.
|
void |
matchLeased(boolean match)
Matches provisions that are leases.
|
void |
matchMustReturn(boolean match)
Matches provisions that must be returned.
|
void |
matchProvisionableId(Id provisionableId,
boolean match)
Sets the provisionable
Id for this query. |
void |
matchProvisionDate(DateTime from,
DateTime to,
boolean match)
Matches provisions with a provision date in the given range inclusive.
|
void |
matchRateAmount(Currency from,
Currency to,
boolean match)
Matches leased provisions with a rate amount within the given range
inclusive.
|
void |
matchRatePeriod(Duration from,
Duration to,
boolean match)
Matches leased provisions with a rate period within the given range
inclusive.
|
void |
matchRecipientId(Id resourceId,
boolean match)
Sets the recipient
Id for this query. |
void |
matchRequestId(Id requestId,
boolean match)
Sets the request
Id for this query. |
boolean |
supportsBrokerQuery()
Tests if a
BrokerQuery is available. |
boolean |
supportsDistributorQuery()
Tests if a
DistributorQuery is available. |
boolean |
supportsProvisionableQuery()
Tests if a
ProvisionableQuery is available. |
boolean |
supportsProvisionReturnQuery()
Tests if a
ProvisionReturn is available. |
boolean |
supportsRecipientQuery()
Tests if a
RecipientQuery is available. |
boolean |
supportsRequestQuery()
Tests if a
RequestQuery is available. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQuery
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, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
void matchBrokerId(Id brokerId, boolean match)
Id
for this query.brokerId
- the broker Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- brokerId
is
null
mandatory
- This method must be implemented. void clearBrokerIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsBrokerQuery()
BrokerQuery
is available. true
if a broker query is available,
false
otherwisemandatory
- This method must be implemented. BrokerQuery getBrokerQuery()
Broker.
Multiple retrievals
produce a nested OR
term.UnimplementedException
- supportsBrokerQuery()
is false
optional
- This method must be implemented if
supportBrokerQuery()
is true.
void clearBrokerTerms()
mandatory
- This method must be implemented. void matchProvisionableId(Id provisionableId, boolean match)
Id
for this query.provisionableId
- the provisionable Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- provisionableId
is null
mandatory
- This method must be implemented. void clearProvisionableIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsProvisionableQuery()
ProvisionableQuery
is available. true
if a provisionable query is available,
false
otherwisemandatory
- This method must be implemented. ProvisionableQuery getProvisionableQuery()
Provisionable.
Multiple retrievals
produce a nested OR
term.UnimplementedException
-
supportsProvisionableQuery()
is false
optional
- This method must be implemented if
supportsProvisionableQuery()
is true.
void clearProvisionableTerms()
mandatory
- This method must be implemented. void matchRecipientId(Id resourceId, boolean match)
Id
for this query.resourceId
- the resource Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearRecipientIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsRecipientQuery()
RecipientQuery
is available. true
if a recipient query is available,
false
otherwisemandatory
- This method must be implemented. ResourceQuery getRecipientQuery()
Recipient.
Multiple retrievals
produce a nested OR
term.UnimplementedException
-
supportsRecipientQuery()
is false
optional
- This method must be implemented if
supportsRecipientQuery()
is true.
void clearRecipientTerms()
mandatory
- This method must be implemented. void matchRequestId(Id requestId, boolean match)
Id
for this query.requestId
- the request Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- requestId
is
null
mandatory
- This method must be implemented. void clearRequestIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsRequestQuery()
RequestQuery
is available. true
if a request query is available,
false
otherwisemandatory
- This method must be implemented. RequestQuery getRequestQuery()
OR
term.UnimplementedException
- supportsRequestQuery()
is false
optional
- This method must be implemented if
supportsRequestQuery()
is true.
void matchAnyRequest(boolean match)
match
- true
to match provisions with a request,
false
to match provisions with no requestsmandatory
- This method must be implemented. void clearRequestTerms()
mandatory
- This method must be implemented. void matchProvisionDate(DateTime from, DateTime to, boolean match)
from
- the range startto
- the range endmatch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void clearProvisionDateTerms()
mandatory
- This method must be implemented. void matchLeased(boolean match)
match
- true
for a positive match, false
for a negative matchmandatory
- This method must be implemented. void clearLeasedTerms()
mandatory
- This method must be implemented. void matchMustReturn(boolean match)
match
- true
for a positive match, false
for a negative matchmandatory
- This method must be implemented. void clearMustReturnTerms()
mandatory
- This method must be implemented. void matchDueDate(DateTime from, DateTime to, boolean match)
from
- the range startto
- the range endmatch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void matchAnyDueDate(boolean match)
match
- true
to match provisions with a due date,
false
to match provisions with no due datemandatory
- This method must be implemented. void clearDueDateTerms()
mandatory
- This method must be implemented. void matchCost(Currency from, Currency to, boolean match)
from
- the range startto
- the range endmatch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void matchAnyCost(boolean match)
match
- true
to match provisions with a cost,
false
to match provisions with no costmandatory
- This method must be implemented. void clearCostTerms()
mandatory
- This method must be implemented. void matchRateAmount(Currency from, Currency to, boolean match)
from
- the range startto
- the range endmatch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void matchAnyRateAmount(boolean match)
match
- true
to match provisions with a rate,
false
to match provisions with no ratemandatory
- This method must be implemented. void clearRateAmountTerms()
mandatory
- This method must be implemented. void matchRatePeriod(Duration from, Duration to, boolean match)
from
- the range startto
- the range endmatch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- from
is
greater than to
NullArgumentException
- from
or
to
is null
mandatory
- This method must be implemented. void matchAnyRatePeriod(boolean match)
match
- true
to match provisions with a rate
period, false
to match provisions with no rate
periodmandatory
- This method must be implemented. void clearRatePeriodTerms()
mandatory
- This method must be implemented. boolean supportsProvisionReturnQuery()
ProvisionReturn
is available. true
if a provision return query is available,
false
otherwisemandatory
- This method must be implemented. ProvisionReturnQuery getProvisionReturnQuery()
OR
term.UnimplementedException
-
supportsProvisionReturnQuery()
is false
optional
- This method must be implemented if
supportsProvisionReturnQuery()
is true.
void matchAnyProvisionReturn(boolean match)
match
- true
to match provisions with a provision
return, false
to match provisions with no
provision returnmandatory
- This method must be implemented. void clearProvisionReturnTerms()
mandatory
- This method must be implemented. void matchDistributorId(Id distributorId, boolean match)
Id
for this query to match
provisions assigned to distributors.distributorId
- the distributor Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- distributorId
is
null
mandatory
- This method must be implemented. void clearDistributorIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsDistributorQuery()
DistributorQuery
is available. true
if a distributor query is available,
false
otherwisemandatory
- This method must be implemented. DistributorQuery getDistributorQuery()
OR
term.UnimplementedException
-
supportsDistributorQuery()
is false
optional
- This method must be implemented if
supportsDistributorQuery()
is true.
void clearDistributorTerms()
mandatory
- This method must be implemented. ProvisionQueryRecord getProvisionQueryRecord(Type provisionRecordType) throws OperationFailedException
Provision
record Type.
Multiple record
retrievals produce a nested OR
term.provisionRecordType
- a provision record typeNullArgumentException
- provisionRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(provisionRecordType)
is false
mandatory
- This method must be implemented.