Interface ShipmentQuery
- All Superinterfaces:
Extensible, OsidAggregateableQuery, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable
This is the query for searching shipments. Each method match specifies
an AND term while multiple invocations of the same method produce
a nested OR .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the shipment date.voidClears the entryIdterms.voidClears the entry terms.voidClears the orderIdterms.voidClears the order terms.voidClears the resourceIdterms.voidClears the source terms.voidClears the warehouseIdterms.voidClears the warehouse terms.Gets the query for an entry.Gets the query for an order.getShipmentQueryRecord(Type shipmentRecordType) Gets the shipment query record corresponding to the givenShipmentrecordType.Multiple record retrievals produce a nestedORterm.Gets the query for a source.Gets the query for a warehouse.voidmatchAnyDate(boolean match) Matches shipments with any date.voidmatchAnyEntry(boolean match) Matches shipments that have any entry.voidmatchAnyOrder(boolean match) Matches shipments with any related order.voidmatchAnySource(boolean match) Matches shipments with any source.voidMatches shipment dates within the given date range inclusive.voidmatchEntryId(Id entryId, boolean match) Sets the entryIdfor this query.voidmatchOrderId(Id orderId, boolean match) Sets the orderIdfor this query.voidmatchSourceId(Id resourceId, boolean match) Sets the resourceIdfor this query.voidmatchWarehouseId(Id warehouseId, boolean match) Sets the warehouseIdfor this query to match shipments assigned to warehouses.booleanTests if anEntryQueryis available.booleanTests if anOrderQueryis available.booleanTests if aResourceQueryis available.booleanTests if aWarehouseQueryis 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.
-
Method Details
-
matchSourceId
Sets the resourceIdfor this query.- Parameters:
resourceId- a resourceIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSourceIdTerms
void clearSourceIdTerms()Clears the resourceIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsSourceQuery
boolean supportsSourceQuery()Tests if aResourceQueryis available.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSourceQuery
ResourceQuery getSourceQuery()Gets the query for a source. Multiple retrievals produce a nestedORterm.- Returns:
- a resource query
- Throws:
UnimplementedException-supportsSourceQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSourceQuery()} is {@code true} .
-
matchAnySource
void matchAnySource(boolean match) Matches shipments with any source.- Parameters:
match-trueto match shipments with any source,falseto match shipments with no source- Compliance:
mandatory- This method must be implemented.
-
clearSourceTerms
void clearSourceTerms()Clears the source terms.- Compliance:
mandatory- This method must be implemented.
-
matchOrderId
Sets the orderIdfor this query.- Parameters:
orderId- an orderIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-orderIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearOrderIdTerms
void clearOrderIdTerms()Clears the orderIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsOrderQuery
boolean supportsOrderQuery()Tests if anOrderQueryis available.- Returns:
trueif an order query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getOrderQuery
OrderQuery getOrderQuery()Gets the query for an order. Multiple retrievals produce a nestedORterm.- Returns:
- an odrer query
- Throws:
UnimplementedException-supportsOrderQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsOrderQuery()} is {@code true} .
-
matchAnyOrder
void matchAnyOrder(boolean match) Matches shipments with any related order.- Parameters:
match-trueto match shipments with any related order,falseto match shipments with no order- Compliance:
mandatory- This method must be implemented.
-
clearOrderTerms
void clearOrderTerms()Clears the order terms.- Compliance:
mandatory- This method must be implemented.
-
matchDate
Matches shipment dates within the given date range inclusive.- Parameters:
from- start of rangeto- end of rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyDate
void matchAnyDate(boolean match) Matches shipments with any date.- Parameters:
match-trueto match shipments with any date,falseto match shipments with no date- Compliance:
mandatory- This method must be implemented.
-
clearDateTerms
void clearDateTerms()Clears the shipment date.- Compliance:
mandatory- This method must be implemented.
-
matchEntryId
Sets the entryIdfor this query.- Parameters:
entryId- an entryIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-entryIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearEntryIdTerms
void clearEntryIdTerms()Clears the entryIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsEntryQuery
boolean supportsEntryQuery()Tests if anEntryQueryis available.- Returns:
trueif an entry query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getEntryQuery
EntryQuery getEntryQuery()Gets the query for an entry. Multiple retrievals produce a nestedORterm.- Returns:
- an entry query
- Throws:
UnimplementedException-supportsEntryQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEntryQuery()} is {@code true} .
-
matchAnyEntry
void matchAnyEntry(boolean match) Matches shipments that have any entry.- Parameters:
match-trueto match shipments with any entry,falseto match shipments with no entries- Compliance:
mandatory- This method must be implemented.
-
clearEntryTerms
void clearEntryTerms()Clears the entry terms.- Compliance:
mandatory- This method must be implemented.
-
matchWarehouseId
Sets the warehouseIdfor this query to match shipments assigned to warehouses.- Parameters:
warehouseId- the warehouseIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-warehouseIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearWarehouseIdTerms
void clearWarehouseIdTerms()Clears the warehouseIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsWarehouseQuery
boolean supportsWarehouseQuery()Tests if aWarehouseQueryis available.- Returns:
trueif a warehouse query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getWarehouseQuery
WarehouseQuery getWarehouseQuery()Gets the query for a warehouse. Multiple retrievals produce a nestedORterm.- Returns:
- the warehouse query
- Throws:
UnimplementedException-supportsWarehouseQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsWarehouseQuery()} is {@code true} .
-
clearWarehouseTerms
void clearWarehouseTerms()Clears the warehouse terms.- Compliance:
mandatory- This method must be implemented.
-
getShipmentQueryRecord
Gets the shipment query record corresponding to the givenShipmentrecordType.Multiple record retrievals produce a nestedORterm.- Parameters:
shipmentRecordType- a shipment record type- Returns:
- the shipment query record
- Throws:
NullArgumentException-shipmentRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(shipmentRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-