public interface EntryQuery extends OsidRelationshipQuery
This is the query for searching entries. 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 |
clearAmountTerms()
Clears the amount terms.
|
void |
clearBusinessIdTerms()
Clears the business
Id terms. |
void |
clearBusinessTerms()
Clears the business terms.
|
void |
clearCustomerIdTerms()
Clears the customer
Id terms. |
void |
clearCustomerTerms()
Clears the customer terms.
|
void |
clearDebitTerms()
Clears the debit terms.
|
void |
clearItemIdTerms()
Clears the item
Id terms. |
void |
clearItemTerms()
Clears the item terms.
|
void |
clearPeriodIdTerms()
Clears the period
Id terms. |
void |
clearPeriodTerms()
Clears the period terms.
|
void |
clearQuantityTerms()
Clears the quantity terms.
|
BusinessQuery |
getBusinessQuery()
Gets the query for a business.
|
CustomerQuery |
getCustomerQuery()
Gets the query for a customer.
|
EntryQueryRecord |
getEntryQueryRecord(Type entryRecordType)
Gets the entry query record corresponding to the given
Entry
record Type. |
ItemQuery |
getItemQuery()
Gets the query for an item.
|
PeriodQuery |
getPeriodQuery()
Gets the query for a reporting period.
|
void |
matchAmount(Currency low,
Currency high,
boolean match)
Matches the amount between the given range inclusive.
|
void |
matchAnyAmount(boolean match)
Matches items that have any amount set.
|
void |
matchBusinessId(Id businessId,
boolean match)
Sets the business
Id for this query to match entries
assigned to businesses. |
void |
matchCustomerId(Id customerId,
boolean match)
Sets the customer
Id for this query. |
void |
matchDebit(boolean match)
Matches items that have debit amounts.
|
void |
matchItemId(Id itemId,
boolean match)
Sets the item
Id for this query. |
void |
matchPeriodId(Id periodId,
boolean match)
Sets the period
Id for this query to match categories
that have a related term. |
void |
matchQuantity(long low,
long high,
boolean match)
Matches entries with a quantity between the given range inclusive.
|
boolean |
supportsBusinessQuery()
Tests if a
BusinessQuery is available. |
boolean |
supportsCustomerQuery()
Tests if a
CustomerQuery is available. |
boolean |
supportsItemQuery()
Tests if an
ItemQuery is available. |
boolean |
supportsPeriodQuery()
Tests if a
PeriodQuery 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 matchCustomerId(Id customerId, boolean match)
Id
for this query.customerId
- a customer Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- customerId
is
null
mandatory
- This method must be implemented. void clearCustomerIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsCustomerQuery()
CustomerQuery
is available. true
if a customer query is available,
false
otherwisemandatory
- This method must be implemented. CustomerQuery getCustomerQuery()
OR
term.UnimplementedException
- supportsCustomerQuery()
is false
optional
- This method must be implemented if
supportsCustomerQuery()
is true.
void clearCustomerTerms()
mandatory
- This method must be implemented. void matchItemId(Id itemId, boolean match)
Id
for this query.itemId
- an item Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- itemId
is
null
mandatory
- This method must be implemented. void clearItemIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsItemQuery()
ItemQuery
is available. true
if an item query is available,
false
otherwisemandatory
- This method must be implemented. ItemQuery getItemQuery()
OR
term.UnimplementedException
- supportsItemQuery()
is false
optional
- This method must be implemented if
supportsItemQuery()
is true.
void clearItemTerms()
mandatory
- This method must be implemented. void matchPeriodId(Id periodId, boolean match)
Id
for this query to match categories
that have a related term.periodId
- a billing period Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- periodId
is
null
mandatory
- This method must be implemented. void clearPeriodIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsPeriodQuery()
PeriodQuery
is available. true
if a period query is available,
false
otherwisemandatory
- This method must be implemented. PeriodQuery getPeriodQuery()
OR
term.UnimplementedException
- supportsPeriodQuery()
is false
optional
- This method must be implemented if
supportsPeriodQuery()
is true.
void clearPeriodTerms()
mandatory
- This method must be implemented. void matchQuantity(long low, long high, boolean match)
low
- start of rangehigh
- end of rangematch
- true
if a positive match, false
for a negative matchInvalidArgumentException
- low
is
greater than high
mandatory
- This method must be implemented. void clearQuantityTerms()
mandatory
- This method must be implemented. void matchAmount(Currency low, Currency high, boolean match)
low
- start of rangehigh
- end of rangematch
- true
for a positive match, false
for a negative matchInvalidArgumentException
- low
is
greater than high
NullArgumentException
- low
or
high
is null
mandatory
- This method must be implemented. void matchAnyAmount(boolean match)
match
- true
to match items with any amount,
false
to match items with no amountmandatory
- This method must be implemented. void clearAmountTerms()
mandatory
- This method must be implemented. void matchDebit(boolean match)
match
- true
to match items with a debit amount,
false
to match items with a credit amountmandatory
- This method must be implemented. void clearDebitTerms()
mandatory
- This method must be implemented. void matchBusinessId(Id businessId, boolean match)
Id
for this query to match entries
assigned to businesses.businessId
- the business Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- businessId
is
null
mandatory
- This method must be implemented. void clearBusinessIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsBusinessQuery()
BusinessQuery
is available. true
if a business query is available,
false
otherwisemandatory
- This method must be implemented. BusinessQuery getBusinessQuery()
OR
term.UnimplementedException
- supportsBusinessQuery()
is false
optional
- This method must be implemented if
supportsBusinessQuery()
is true.
void clearBusinessTerms()
mandatory
- This method must be implemented. EntryQueryRecord getEntryQueryRecord(Type entryRecordType) throws OperationFailedException
Entry
record Type.
Multiple record retrievals produce
a nested OR
term.entryRecordType
- an entry record typeNullArgumentException
- entryRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(entryRecordType)
is false
mandatory
- This method must be implemented.