product.java

来自「学习EJB的很好范例」· Java 代码 · 共 30 行

JAVA
30
字号
package com.wiley.compBooks.roman.entity.product;

import javax.ejb.*;
import java.rmi.RemoteException;

/**
 * These are the public business methods of ProductBean.
 *
 * This interface is what 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 + -
显示快捷键?