employeehome.java

来自「java EJB 编程源代码。」· Java 代码 · 共 18 行

JAVA
18
字号
package enroll.welfareejb;

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

public interface EmployeeHome extends EJBHome
  {
   //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
   //这是一个基于Entity Bean的Home接口,这个Entity Bean是基于
   //Container-managed Persistence的Entity Bean,用来对EmployeeTBL表进行操作
   //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

   public Employee create(String employee_id, String name) throws DuplicateKeyException,CreateException, RemoteException;
   public Employee findByPrimaryKey(String employee_id) throws ObjectNotFoundException,FinderException, RemoteException;
   public Collection findAll() throws FinderException, RemoteException;
 }	

⌨️ 快捷键说明

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