product.java

来自「为大家提供了《精通EJB》(第三版)一书的源代码」· Java 代码 · 共 30 行

JAVA
30
字号
package examples.cmp;import javax.ejb.*;import java.rmi.RemoteException;/** * These remote interface with public business methods of ProductBean. * * This interface is what remote clients operate on when they interact * with beans. The EJB Server vendor will implement this interface; * the implemented object instance is called the EJB Object, which * delegates invocations to instances of the ProductBean class. */public interface Product     extends EJBObject {    // Getter/setter methods for Entity Bean fields        public String getName() throws RemoteException;    public void setName(String name) throws RemoteException;        public String getDescription() throws RemoteException;    public void setDescription(String description) throws RemoteException;        public double getBasePrice() throws RemoteException;    public void setBasePrice(double price) throws RemoteException;        public String getProductID() throws RemoteException;}

⌨️ 快捷键说明

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