public interface CreditQuery extends OsidRelationshipQuery
This is the query for searching credits. Each method specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearBillingIdTerms()
Clears all billing
Id terms. |
void |
clearBillingTerms()
Clears all billing terms.
|
void |
clearReferenceIdTerms()
Clears all reference
Id terms. |
void |
clearResourceIdTerms()
Clears all resource
Id terms. |
void |
clearResourceTerms()
Clears all resource terms.
|
BillingQuery |
getBillingQuery()
Gets the query for a billing query.
|
CreditQueryRecord |
getCreditQueryRecord(Type creditRecordType)
Gets the credit query record corresponding to the given
Credit
record Type. |
ResourceQuery |
getResourceQuery()
Gets the query for a resource query.
|
void |
matchBillingId(Id billingId,
boolean match)
Sets the billing
Id for this query to match credits
assigned to billings. |
void |
matchReferenceId(Id referenceId,
boolean match)
Sets reference
Id. |
void |
matchResourceId(Id resourceId,
boolean match)
Sets a resource
Id. |
boolean |
supportsBillingQuery()
Tests if a
BillingQuery is available. |
boolean |
supportsResourceQuery()
Tests if a
ResourceQuery 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 matchReferenceId(Id referenceId, boolean match)
Id.
referenceId
- a reference Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- referenceId
is
null
mandatory
- This method must be implemented. void clearReferenceIdTerms()
Id
terms.mandatory
- This method must be implemented. void matchResourceId(Id resourceId, boolean match)
Id.
resourceId
- a resource Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearResourceIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsResourceQuery()
ResourceQuery
is available. true
if a resource query is available,
false
otherwisemandatory
- This method must be implemented. ResourceQuery getResourceQuery()
OR
term.UnimplementedException
- supportsResourceQuery()
is false
optional
- This method must be implemented if
supportsResourceQuery()
is true.
void clearResourceTerms()
mandatory
- This method must be implemented. void matchBillingId(Id billingId, boolean match)
Id
for this query to match credits
assigned to billings.billingId
- a billing Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- billingId
is
null
mandatory
- This method must be implemented. void clearBillingIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsBillingQuery()
BillingQuery
is available. true
if a billing query is available,
false
otherwisemandatory
- This method must be implemented. BillingQuery getBillingQuery()
OR
term.UnimplementedException
- supportsBillingQuery()
is false
optional
- This method must be implemented if
supportsBillingQuery()
is true.
void clearBillingTerms()
mandatory
- This method must be implemented. CreditQueryRecord getCreditQueryRecord(Type creditRecordType) throws OperationFailedException
Credit
record Type.
Multiple record retrievals produce
a nested OR
term.creditRecordType
- a credit record typeNullArgumentException
- creditRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(creditRecordType)
is false
mandatory
- This method must be implemented.