OSID Logo
OSID Specifications
inventory package
Version 3.1.0
Interfaceosid.inventory.StockQuery
Implementsosid.OsidObjectQuery
osid.OsidFederateableQuery
Used Byosid.checklist.mason.TodoProducerQuery
osid.inventory.InventoryQuery
osid.inventory.ItemQuery
osid.inventory.StockQuery
osid.inventory.StockQuerySession
osid.inventory.StockSearchSession
osid.inventory.StockSmartWarehouseSession
osid.inventory.WarehouseQuery
osid.inventory.shipment.EntryQuery
osid.recipe.IngredientQuery
Description

This is the query for searching stocks. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchSKU
Description

Matches a sku number.

Parametersstringsku a sku
osid.type.TypestringMatchType a string match type
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT sku or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnySKU
Description

Matches items that have any sku.

Parametersbooleanmatch true to match items with any sku, false to match items with no sku
Compliancemandatory This method must be implemented.
MethodclearSKUTerms
Description

Clears the sku terms.

Compliancemandatory This method must be implemented.
MethodmatchModelId
Description

Sets the model Id for this query.

Parametersosid.id.IdmodelId a model Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT modelId is null
Compliancemandatory This method must be implemented.
MethodclearModelIdTerms
Description

Clears the model Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsModelQuery
Description

Tests if a ModelQuery is available.

Returnboolean true if a model query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetModelQuery
Description

Gets the query for an inventory. Multiple retrievals produce a nested OR term.

Returnosid.inventory.ModelQuery the model query
ErrorsUNIMPLEMENTED supportsModelQuery() is false
Complianceoptional This method must be implemented if supportsModelQuery() is true.
MethodmatchAnyModel
Description

Matches any related model.

Parametersbooleanmatch true to match stocks with any model, false to match stocks with no models
Compliancemandatory This method must be implemented.
MethodclearModelTerms
Description

Clears the model terms.

Compliancemandatory This method must be implemented.
MethodmatchLocationDescription
Description

Matches a location description.

Parametersstringlocation a location string
osid.type.TypestringMatchType a string match type
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT location or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
Compliancemandatory This method must be implemented.
MethodmatchAnyLocationDescription
Description

Matches items that have any location description.

Parametersbooleanmatch true to match stocks with any location string, false to match stocks with no location string
Compliancemandatory This method must be implemented.
MethodclearLocationDescriptionTerms
Description

Clears the location description terms.

Compliancemandatory This method must be implemented.
MethodmatchLocationId
Description

Sets the location Id for this query.

Parametersosid.id.IdlocationId the location Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT locationId is null
Compliancemandatory This method must be implemented.
MethodclearLocationIdTerms
Description

Clears the location Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsLocationQuery
Description

Tests if a LocationQuery is available.

Returnboolean true if a location query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetLocationQuery
Description

Gets the query for a location. Multiple retrievals produce a nested OR term.

Returnosid.mapping.LocationQuery the location query
ErrorsUNIMPLEMENTED supportsLocationQuery() is false
Complianceoptional This method must be implemented if supportsLocationQuery() is true.
MethodmatchAnyLocation
Description

Matches items that have any location.

Parametersbooleanmatch true to match stocks with any location, false to match stocks with no location
Compliancemandatory This method must be implemented.
MethodclearLocationTerms
Description

Clears the location terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorStockId
Description

Sets the stock Id for this query to match stocks that have the specified stock as an ancestor.

Parametersosid.id.IdstockId a stock Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT stockId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorStockIdTerms
Description

Clears the ancestor stock Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorStockQuery
Description

Tests if a StockQuery is available.

Returnboolean true if a stock query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorStockQuery
Description

Gets the query for a stock. Multiple retrievals produce a nested OR term.

Returnosid.inventory.StockQuery the stock query
ErrorsUNIMPLEMENTED supportsAncestorStockQuery() is false
Complianceoptional This method must be implemented if supportsAncestorStockQuery() is true.
MethodmatchAnyAncestorStock
Description

Matches stocks with any stock ancestor.

Parametersbooleanmatch true to match stocks with any ancestor, false to match root stocks
Compliancemandatory This method must be implemented.
MethodclearAncestorStockTerms
Description

Clears the ancestor stock query terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantStockId
Description

Sets the stock Id for this query to match stocks that have the specified stock as an descendant.

Parametersosid.id.IdstockId a stock Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT stockId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantStockIdTerms
Description

Clears the descendant stock Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantStockQuery
Description

Tests if a StockQuery is available.

Returnboolean true if a stock query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantStockQuery
Description

Gets the query for a stock. Multiple retrievals produce a nested OR term.

Returnosid.inventory.StockQuery the stock query
ErrorsUNIMPLEMENTED supportsDescendantStockQuery() is false
Complianceoptional This method must be implemented if supportsDescendantStockQuery() is true.
MethodmatchAnyDescendantStock
Description

Matches stocks with any descendant stock.

Parametersbooleanmatch true to match stocks with any descendant, false to match leaf stocks
Compliancemandatory This method must be implemented.
MethodclearDescendantStockTerms
Description

Clears the descendant stock query terms.

Compliancemandatory This method must be implemented.
MethodmatchWarehouseId
Description

Sets the warehouse Id for this query to match stocks assigned to warehouses.

Parametersosid.id.IdwarehouseId the warehouse Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT warehouseId is null
Compliancemandatory This method must be implemented.
MethodclearWarehouseIdTerms
Description

Clears the warehouse Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsWarehouseQuery
Description

Tests if a WarehouseQuery is available.

Returnboolean true if a warehouse query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetWarehouseQuery
Description

Gets the query for a warehouse. Multiple retrievals produce a nested OR term.

Returnosid.inventory.WarehouseQuery the warehouse query
ErrorsUNIMPLEMENTED supportsWarehouseQuery() is false
Complianceoptional This method must be implemented if supportsWarehouseQuery() is true.
MethodclearWarehouseTerms
Description

Clears the warehouse terms.

Compliancemandatory This method must be implemented.
MethodgetStockQueryRecord
Description

Gets the stock query record corresponding to the given Stock record Type.Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypestockRecordType a stock record type
Returnosid.inventory.records.StockQueryRecord the stock query record
ErrorsNULL_ARGUMENT stockRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(stockRecordType) is false
Compliancemandatory This method must be implemented.