当前位置: 技术问答>java相关
ejb中的实体bean要不要实现查找方法 “select * from name where name='name'"
来源: 互联网 发布时间:2015-04-23
本文导语: import javax.ejb.*; import java.rmi.RemoteException; import java.util.Enumeration; public interface CustomerHome extends EJBHome { Customer create(String customerID, String customerName, String address, String password) throws CreateException, RemoteException; public Cu...
import javax.ejb.*;
import java.rmi.RemoteException;
import java.util.Enumeration;
public interface CustomerHome extends EJBHome {
Customer create(String customerID, String customerName, String address, String password) throws CreateException, RemoteException;
public Customer findByPrimaryKey(CustomerPK key) throws FinderException, RemoteException;
public Enumeration findByName(String name) throws FinderException, RemoteException;
public Enumeration findByAddress(String address) throws FinderException, RemoteException;
public Enumeration findAllCustomers() throws FinderException, RemoteException;
}
上面的方法在哪个类中实现?
|
i give u a sets of ejb demos .
give your email
give your email
|
CMP不需要BMP需要,看你要发布什么样的EJB了
|
不需要。