shopcommodityprochomeint.java

来自「使用EJB + JSP + JavaBean + Servlet开发的一个远程销」· Java 代码 · 共 29 行

JAVA
29
字号
package flowershoporder.ejb;import java.util.*;import javax.ejb.*;import java.rmi.RemoteException;//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -//这是EntityBean(ShopCommodityProcEJB)的一个Home接口//这个EntityBean(ShopCommodityProcEJB)用来处理商品信息//它是一个Container managed persistence EntityBean//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -public interface ShopCommodityProcHomeint extends EJBHome  {   //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   //建立两个返回Remote Interface对象的抽象方法create()   //create()方法用于建立一条新的数据记录   //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   public ShopCommodityProcRemoteint create(String commodityid) throws DuplicateKeyException,CreateException,RemoteException;   public ShopCommodityProcRemoteint create(String commodityid,String commodityname,int unitprice) throws DuplicateKeyException,CreateException,RemoteException;   //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   //建立两个find方法,用于搜索一条或多条数据记录   //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   public ShopCommodityProcRemoteint findByPrimaryKey(String commodityid) throws ObjectNotFoundException,FinderException,RemoteException;   public Collection findAll() throws FinderException,RemoteException;  }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?