Sample for a home interface

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

import java.util.Collection;

import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;

/**
* @author earnest.thomas
*
* This is the Local Home of Product entity bean, Product
* entity bean is used to reprecent the product in the database.
*/
public interface ProductLocalHome extends EJBLocalHome {
/**
* Creation method.
* @param name
* @param retailPrice
* @param wholeSalePrice
* @param discountPrice
* @param description
* @param quantity
* @return
* @throws CreateException
* @throws EJBException
*/
public ProductLocal create(
String name,
float retailPrice,
float wholeSalePrice,
float discountPrice,
String description,
int quantity)
throws CreateException, EJBException;

/**
* Find Local Object by id
* @param id
* @return a Local Object
* @throws FinderException
* @throws EJBException
*/
public ProductLocal findByPrimaryKey(Integer id)
throws FinderException, EJBException;

/**
* Find all Local Objects
* @return Collection of all Local Object
* @throws FinderException
* @throws EJBException
*/
public Collection findAll() throws FinderException, EJBException;
}


...全文
54 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

23,407

社区成员

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

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