com.sun.j2ee.blueprints.inventory.ejb
Interface Inventory


public interface Inventory
extends javax.ejb.EJBObject

This interface provides methods to view and modify inventory information for a particular item.


Method Summary
 void addQuantity(int qty)
          increases the quantity in inventory by qty amount
 InventoryModel getDetails()
           
 void reduceQuantity(int qty)
          reduces the quantity in inventory by qty amount
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getDetails

public InventoryModel getDetails()
                          throws java.rmi.RemoteException
Returns:
the inventory information for this item.

reduceQuantity

public void reduceQuantity(int qty)
                    throws java.rmi.RemoteException
reduces the quantity in inventory by qty amount

addQuantity

public void addQuantity(int qty)
                 throws java.rmi.RemoteException
increases the quantity in inventory by qty amount


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.