《J2EE企业级应用开发》一书的配套源代码

源代码在线查看: itemlocalhome.java

软件大小: 36612 K
上传用户: zhoujun008
关键词: J2EE 企业级 应用开发 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				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;
				    
				
				    
				}			

相关资源