|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StoreQueryIf
This interface provides methods for querying the database. The interface will be used by the InventoryApplication. The methods are derived from methods defined in StoreIf and CashdeskIf.
Method Summary | |
---|---|
java.util.Collection<StockItem> |
getStockItems(long storeId,
long[] productIds,
PersistenceContext pctx)
|
java.util.Collection<StockItem> |
queryAllStockItems(long storeId,
PersistenceContext pctx)
|
java.util.Collection<StockItem> |
queryLowStockItems(long storeId,
PersistenceContext pctx)
queries the stockitems which are low on stock |
ProductOrder |
queryOrderById(long orderId,
PersistenceContext pctx)
The following methods from StoreIf use this method: List |
Product |
queryProductById(long productId,
PersistenceContext pctx)
|
java.util.Collection<Product> |
queryProducts(long storeId,
PersistenceContext pctx)
|
StockItem |
queryStockItem(long storeId,
long productbarcode,
PersistenceContext pctx)
The following methods from StoreIf use this method: ProductWithStockItemTO getProductWithStockItem(int productBarCode); |
StockItem |
queryStockItemById(long stockId,
PersistenceContext pctx)
|
Store |
queryStoreById(long storeId,
PersistenceContext pctx)
|
Method Detail |
---|
Store queryStoreById(long storeId, PersistenceContext pctx)
storeId
- A unique identifier of a Store objectpctx
- the persistence context
java.util.Collection<Product> queryProducts(long storeId, PersistenceContext pctx)
storeId
- A unique identifier of a Store objectpctx
- the persistence context
java.util.Collection<StockItem> queryLowStockItems(long storeId, PersistenceContext pctx)
storeId
- A unique identifier of a Store objectpctx
- the persistence context
java.util.Collection<StockItem> queryAllStockItems(long storeId, PersistenceContext pctx)
storeId
- A unique identifier of a Store objectpctx
- the persistence context
ProductOrder queryOrderById(long orderId, PersistenceContext pctx)
orderId
- A unique identifier of an ProductOrder objectpctx
- the persistence context
StockItem queryStockItem(long storeId, long productbarcode, PersistenceContext pctx)
storeId
- A unique identifier of a Store objectproductbarcode
- pctx
- the persistence context
StockItem queryStockItemById(long stockId, PersistenceContext pctx)
stockId
- A unique identifier of a StockItem objectpctx
-
Product queryProductById(long productId, PersistenceContext pctx)
productId
- A unique identifier of a Product objectpctx
- the persistence context
java.util.Collection<StockItem> getStockItems(long storeId, long[] productIds, PersistenceContext pctx)
storeId
- The store to search StockItems for.productIds
- The products to look up in the stockpctx
- the persistence context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |