theory.smart.ebusiness.inventory
Interface InventoryManager
- public interface InventoryManager
- extends Session
The inventory manager provides a simplified interface to the Inventory classes. To accomplish this it uses ItemInventory
and InventoryRecord
- See Also:
InventoryManagerHome
,
InventoryManagerImpl
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
checkItemAvailability
public boolean checkItemAvailability(Item item)
throws java.rmi.RemoteException
- Find the ItemInventory object that summarizes all Inventory Records available for this item type. Iterate these items until the quantity desired has been found. Return true if the quantity is available and false if not.
assignItems
public void assignItems(Account acct,
Item item,
Quantity quantity)
throws java.rmi.RemoteException
- Iterate the Inventory records for the item and execute withdrawals until the desired amount has been acquired. All of this is done within a single transaction.
addItemToInventory
public InventoryRecord addItemToInventory(Item item,
Quantity qty)
throws java.rmi.RemoteException
- Create a new inventory record and set the initial balance to the quantity specified.
increaseInventory
public InventoryRecord increaseInventory(java.lang.String inventoryKey,
Quantity qty)
throws java.rmi.RemoteException
- Increase the balance on the Inventory Record by the specified Quantity.
Copyright © 2000 BEA Systems, Inc. All Rights Reserved