package com.j2eeapp.cdstore.storage;
import javax.ejb.*;
import com.j2eeapp.cdstore.vo.Item;
public interface ItemLocalHome extends EJBLocalHome
{
/**
* @J2EE_METHOD -- findByPrimaryKey
* Called by the client to find an EJB bean instance, usually find by primary key.
* @throws javax.ejb.FinderException
*/
public ItemLocal findByPrimaryKey (String primaryKey)
throws FinderException;
/**
* @J2EE_METHOD -- create
* Called by the client to create an EJB bean instance. It requires a matching pair in
* the bean class, i.e. ejbCreate().
* @throws java.rmi.RemoteException
* @throws javax.ejb.CreateException
*/
public ItemLocal create (Item item) throws CreateException;
public java.util.Collection findAllItems()throws FinderException;
public ItemLocal findByProductId(String productId)throws FinderException;
}