?? shopcommodityprochomeint.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 + -