Interface ModelQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, Suppliable
This is the query for searching models. Each method match specifies an
AND term while multiple invocations of the same method produce a
nested OR.
Like all OsidQueries, ModelQuery is stateful and must
not be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the archetype terms.voidClears the manufacturer terms.voidClears the manufacturer terms.voidClears the model number terms.voidClears the warehouseIdquery terms.voidClears the warehouse terms.Gets the query for a manufacturer.getModelQueryRecord(Type modelRecordType) Gets the model query record corresponding to the givenModelrecordType.Multiple record retrievals produce a nestedORterm.Gets the query for a warehouse.voidmatchAnyArchetype(boolean match) Matches items that have any archetype.voidmatchAnyManufacturer(boolean match) Matches any manufacturer.voidmatchAnyNumber(boolean match) Matches items that have any model number.voidmatchArchetype(String archetype, Type stringMatchType, boolean match) Matches an archetype.voidmatchManufacturerId(Id resourceId, boolean match) Sets the inventoryIdfor this query to match models that have a related manufacturer.voidmatchNumber(String number, Type stringMatchType, boolean match) Matches a model number.voidmatchWarehouseId(Id warehouseId, boolean match) Sets the warehouseIdfor this query to match models assigned to warehouses.booleanTests if aManufacturerQueryis available for the location.booleanTests if aWarehouseQueryis available.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeMethods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdMethods 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, supportsSubjectRelevancyQueryMethods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
-
Method Details
-
matchManufacturerId
Sets the inventoryIdfor this query to match models that have a related manufacturer.- Parameters:
resourceId- a resourceIdmatch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearManufacturerIdTerms
void clearManufacturerIdTerms()Clears the manufacturer terms.- Compliance:
mandatory- This method must be implemented.
-
supportsManufacturerQuery
boolean supportsManufacturerQuery()Tests if aManufacturerQueryis available for the location.- Returns:
trueif a manufacturer query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getManufacturerQuery
ResourceQuery getManufacturerQuery()Gets the query for a manufacturer. Multiple retrievals produce a nestedORterm.- Returns:
- the manufacturer query
- Throws:
UnimplementedException-supportsManufacturerQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsManufacturerQuery()} is {@code true}.
-
matchAnyManufacturer
void matchAnyManufacturer(boolean match) Matches any manufacturer.- Parameters:
match-trueto match models with any inventory,falseto match models with no inventories- Compliance:
mandatory- This method must be implemented.
-
clearManufacturerTerms
void clearManufacturerTerms()Clears the manufacturer terms.- Compliance:
mandatory- This method must be implemented.
-
matchArchetype
Matches an archetype.- Parameters:
archetype- an archetype for the modelstringMatchType- a string match typematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-archetypeorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyArchetype
void matchAnyArchetype(boolean match) Matches items that have any archetype.- Parameters:
match-trueto match items with any archetype,falseto match items with no archetype- Compliance:
mandatory- This method must be implemented.
-
clearArchetypeTerms
void clearArchetypeTerms()Clears the archetype terms.- Compliance:
mandatory- This method must be implemented.
-
matchNumber
Matches a model number.- Parameters:
number- a model numberstringMatchType- a string match typematch-trueif a positive match,falsefor a negative match- Throws:
NullArgumentException-numberorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyNumber
void matchAnyNumber(boolean match) Matches items that have any model number.- Parameters:
match-trueto match items with any model number,falseto match items with no model number- Compliance:
mandatory- This method must be implemented.
-
clearNumberTerms
void clearNumberTerms()Clears the model number terms.- Compliance:
mandatory- This method must be implemented.
-
matchWarehouseId
Sets the warehouseIdfor this query to match models 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 warehouseIdquery terms.- 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.
-
getModelQueryRecord
Gets the model query record corresponding to the givenModelrecordType.Multiple record retrievals produce a nestedORterm.- Parameters:
modelRecordType- a model record type- Returns:
- the model query record
- Throws:
NullArgumentException-modelRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(modelRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-