readerinfohomeint.java

来自「这是一个学习ejb的基本程序」· Java 代码 · 共 33 行

JAVA
33
字号
package library.ejb;

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

//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//这是Entity Bean的Home接口
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

public interface ReaderInfoHomeInt extends EJBHome
  {
   //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
   //建立两个返回Remote Interface对象的抽象方法create()
   //这个方法与Bean Class中的ejbCreate()和ejbPostCreate()相对应
   //create()方法用于建立一条新的用户数据记录
   //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

   public ReaderInfoRemoteInt create(String cardid) throws DuplicateKeyException,CreateException,RemoteException;
   public ReaderInfoRemoteInt create(String readname,String cardid,String password,String address,String email) throws DuplicateKeyException,CreateException,RemoteException;

   //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
   //建立一个返回Remote Interface对象的抽象方法findByPrimaryKey()
   //这个方法用于搜索一条或多条用户数据记录
   //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

   public ReaderInfoRemoteInt findByPrimaryKey(String cardid) throws ObjectNotFoundException,FinderException, RemoteException;
   public Collection findAll() throws FinderException, RemoteException;
  }



⌨️ 快捷键说明

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