OSID Logo
OSID Specifications
inventory package
Version 3.1.0
Interfaceosid.inventory.InventoryQuery
Implementsosid.OsidObjectQuery
osid.OsidSubjugateableQuery
Used Byosid.inventory.InventoryQuerySession
osid.inventory.InventorySearchSession
osid.inventory.InventorySmartWarehouseSession
osid.inventory.WarehouseQuery
Description

This is the query for searching inventories. 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.
MethodclearStockTerms
Description

Clears the stock terms.

Compliancemandatory This method must be implemented.
MethodmatchDate
Description

Matches inventories where the given time falls within a denormalized inventory date inclusive.

Parametersosid.calendaring.DateTimedate a date
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT date is null
Compliancemandatory This method must be implemented.
MethodclearDateTerms
Description

Clears the meeting time terms.

Compliancemandatory This method must be implemented.
MethodmatchDateInclusive
Description

Matches inventories with any denormalized date within the given date range inclusive.

Parametersosid.calendaring.DateTimestart a start date
osid.calendaring.DateTimeend an end date
booleanmatch true if a positive match, false for a negative match
ErrorsINVALID_ARGUMENT start is greater than end
NULL_ARGUMENT start or end is null
Compliancemandatory This method must be implemented.
MethodclearDateInclusiveTerms
Description

Clears the date inclusive terms.

Compliancemandatory This method must be implemented.
MethodmatchQuantity
Description

Matches inventories with a quantity within the given range inclusive.

Parametersdecimalstart start range
decimalend end range
booleanmatch true if a positive match, false for a negative match
ErrorsINVALID_ARGUMENT start is greater than end
Compliancemandatory This method must be implemented.
MethodclearQuantityTerms
Description

Clears the quantity terms.

Compliancemandatory This method must be implemented.
MethodmatchWarehouseId
Description

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

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

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