OSID Logo
OSID Specifications
inventory package
Version 3.1.0
Interfaceosid.inventory.ItemQuery
Implementsosid.OsidObjectQuery
Used Byosid.inventory.ItemQuery
osid.inventory.ItemQuerySession
osid.inventory.ItemSearchSession
osid.inventory.ItemSmartWarehouseSession
osid.inventory.WarehouseQuery
osid.inventory.shipment.EntryQuery
Description

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

MethodmatchStockId
Description

Sets the stock Id for this query.

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

Clears the stock Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsStockQuery
Description

Tests if a StockQuery is available.

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

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

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

Matches items that have any stock.

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

Clears the stock terms.

Compliancemandatory This method must be implemented.
MethodmatchPropertyTag
Description

Matches a property identification number.

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

Matches items that have any property tag.

Parametersbooleanmatch true to match items with any property tag, false to match items with no property tag
Compliancemandatory This method must be implemented.
MethodclearPropertyTagTerms
Description

Clears the property tag terms.

Compliancemandatory This method must be implemented.
MethodmatchSerialNumber
Description

Matches a serial number.

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

Matches items that have any serial number.

Parametersbooleanmatch true to match items with any serial number, false to match items with no serial number
Compliancemandatory This method must be implemented.
MethodclearSerialNumberTerms
Description

Clears the serial number 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 items with any location string, false to match items 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 items with any location, false to match items with no location
Compliancemandatory This method must be implemented.
MethodclearLocationTerms
Description

Clears the location terms.

Compliancemandatory This method must be implemented.
MethodmatchItemId
Description

Sets the item Id for this query to match items part of the given item.

Parametersosid.id.IditemId the item Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT itemId is null
Compliancemandatory This method must be implemented.
MethodclearItemIdTerms
Description

Clears the item Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsItemQuery
Description

Tests if an ItemQuery is available.

Returnboolean true if an item query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetItemQuery
Description

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

Returnosid.inventory.ItemQuery the item query
ErrorsUNIMPLEMENTED supportsItemQuery() is false
Complianceoptional This method must be implemented if supportsItemQuery() is true.
MethodmatchAnyItem
Description

Matches items that have any item.

Parametersbooleanmatch true to match items part of any item, false to match items psrt of no item
Compliancemandatory This method must be implemented.
MethodclearItemTerms
Description

Clears the item terms.

Compliancemandatory This method must be implemented.
MethodmatchWarehouseId
Description

Sets the warehouse Id for this query to match items 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 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.
MethodgetItemQueryRecord
Description

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

Parametersosid.type.TypeitemRecordType an item record type
Returnosid.inventory.records.ItemQueryRecord the item query record
ErrorsNULL_ARGUMENT itemRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(itemRecordType) is false
Compliancemandatory This method must be implemented.