Sample for a remote interface:

zhkchi 2005-05-18 03:17:07
package training.proman.ejb;

import javax.ejb.EJBException;
import javax.ejb.EJBLocalObject;

/**
* @author earnest.thomas
*
* This is the Local Interface of Product entity bean, Product
* entity bean is used to reprecent the product in the database.
*/
public interface ProductLocal extends EJBLocalObject {
public Integer getId() throws EJBException;
public void setId(Integer id) throws EJBException;
public String getName() throws EJBException;
public void setName(String name) throws EJBException;
public float getRetailPrice() throws EJBException;
public void setRetailPrice(float retailPrice) throws EJBException;
public float getWholeSalePrice() throws EJBException;
public void setWholeSalePrice(float wholeSalePrice) throws EJBException;
public float getDiscountPrice() throws EJBException;
public void setDiscountPrice(float discountPrice) throws EJBException;
public String getDescription() throws EJBException;
public void setDescription(String description) throws EJBException;
public int getQuantity() throws EJBException;
public void setQuantity(int quantity) throws EJBException;

}

...全文
108 1 打赏 收藏 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq153788616 2005-05-26
  • 打赏
  • 举报
回复
帮你顶~~~~~~~~~

23,404

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧