⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shopcommodityprochomeint.java

📁 使用EJB + JSP + JavaBean + Servlet开发的一个远程销售通用平台
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -