public interface MeterQuery extends OsidObjectQuery
This is the query for searching meters. Each method specifies an
AND
term while multiple invocations of the same method produce a
nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearUtilityIdTerms()
Clears the utility
Id query terms. |
void |
clearUtilityTerms()
Clears the utility query terms.
|
MeterQueryRecord |
getMeterQueryRecord(Type meterRecordType)
Gets the meter query record corresponding to the given
Meter
record Type. |
UtilityQuery |
getUtilityQuery()
Gets the query for a utility.
|
void |
matchUtilityId(Id utilityId,
boolean match)
Sets the utility
Id for this query. |
boolean |
supportsUtilityQuery()
Tests if a
UtilityQuery is available. |
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
void matchUtilityId(Id utilityId, boolean match)
Id
for this query.utilityId
- the utility Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- utilityId
is
null
mandatory
- This method must be implemented. void clearUtilityIdTerms()
Id
query terms.mandatory
- This method must be implemented. boolean supportsUtilityQuery()
UtilityQuery
is available. true
if a utility query is available,
false
otherwisemandatory
- This method must be implemented. UtilityQuery getUtilityQuery()
OR
term.UnimplementedException
- supportsUtilityQuery()
is false
optional
- This method must be implemented if
supportsUtilityQuery()
is true.
void clearUtilityTerms()
mandatory
- This method must be implemented. MeterQueryRecord getMeterQueryRecord(Type meterRecordType) throws OperationFailedException
Meter
record Type.
Multiple retrievals produce a
nested OR
term.meterRecordType
- a meter record typeNullArgumentException
- meterRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(meterRecordType)
is false
mandatory
- This method must be implemented.