com.ibm.websphere.samples.plantsbywebsphereejb
Interface InventoryHome

All Superinterfaces:
javax.ejb.EJBLocalHome

public interface InventoryHome
extends javax.ejb.EJBLocalHome


Method Summary
 Inventory create(InventoryKey key, java.lang.String name, java.lang.String heading, java.lang.String desc, java.lang.String pkginfo, java.lang.String image, float price, float cost, int quantity, int category, java.lang.String notes, int isPublic)
          Create a new Inventory.
 Inventory create(StoreItem item)
          Create a new Inventory.
 Inventory create(java.lang.String inventoryID)
          Creates an instance from a key for Entity Bean: Inventory
 java.util.Collection findByCategory(int category)
          Finds all Inventory beans by category type.
 java.util.Collection findByNameLikeness(java.lang.String name)
          Finds all Inventory beans by whose name contains the given string.
 Inventory findByPrimaryKey(InventoryKey key)
          Finds the Inventory bean with the specified key.
 Inventory findByPrimaryKeyUpdate(java.lang.String inventoryID)
          Finds the Inventory bean with the specified key.
 
Methods inherited from interface javax.ejb.EJBLocalHome
remove
 

Method Detail

findByPrimaryKeyUpdate

Inventory findByPrimaryKeyUpdate(java.lang.String inventoryID)
                                 throws javax.ejb.FinderException
Finds the Inventory bean with the specified key.

Parameters:
inventoryID - InventoryKey of Inventory bean desired.
Returns:
The Inventory bean desired.
Throws:
javax.ejb.FinderException

create

Inventory create(InventoryKey key,
                 java.lang.String name,
                 java.lang.String heading,
                 java.lang.String desc,
                 java.lang.String pkginfo,
                 java.lang.String image,
                 float price,
                 float cost,
                 int quantity,
                 int category,
                 java.lang.String notes,
                 int isPublic)
                 throws javax.ejb.CreateException
Create a new Inventory.

Parameters:
key - InventoryKey
name - Name of inventory item.
heading - Description heading of inventory item.
desc - Description of inventory item.
pkginfo - Package info of inventory item.
image - Image of inventory item.
price - Price of inventory item.
cost - Cost of inventory item.
quantity - Quantity of inventory items in stock.
category - Category of inventory item.
notes - Notes of inventory item.
isPublic - Access permission of inventory item.
Throws:
javax.ejb.CreateException

create

Inventory create(StoreItem item)
                 throws javax.ejb.CreateException
Create a new Inventory.

Parameters:
item - StoreItem to use to make a new inventory item.
Throws:
javax.ejb.CreateException

findByPrimaryKey

Inventory findByPrimaryKey(InventoryKey key)
                           throws javax.ejb.FinderException
Finds the Inventory bean with the specified key.

Parameters:
key - InventoryKey of Inventory bean desired.
Returns:
The Inventory bean desired.
Throws:
javax.ejb.FinderException

findByCategory

java.util.Collection findByCategory(int category)
                                    throws javax.ejb.FinderException
Finds all Inventory beans by category type.

Parameters:
category - Category of Inventory bean wanted.
Returns:
A Collection of Inventory beans which match the category.
Throws:
javax.ejb.FinderException

findByNameLikeness

java.util.Collection findByNameLikeness(java.lang.String name)
                                        throws javax.ejb.FinderException
Finds all Inventory beans by whose name contains the given string.

Parameters:
name - Name of Inventory bean wanted.
Returns:
A Collection of Inventory beans whose name contain the given string.
Throws:
javax.ejb.FinderException

create

Inventory create(java.lang.String inventoryID)
                 throws javax.ejb.CreateException
Creates an instance from a key for Entity Bean: Inventory

Throws:
javax.ejb.CreateException