studenthome.java

来自「java的一系列产品中包括jsme,jmse,j2ee,本文件提供j2ee实现的」· Java 代码 · 共 27 行

JAVA
27
字号
package cmp;

import java.rmi.RemoteException;
import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.FinderException;
import javax.ejb.EJBHome;

public interface StudentHome extends EJBHome {
  // create method
  public Student create(String name, int sid, int grade)
    	throws CreateException, RemoteException;
    
  // finders
  public Student findByPrimaryKey(Integer sid)
    	throws FinderException, RemoteException;

  public Collection findStudentsInGrade(int grade)
    	throws FinderException, RemoteException;

  public Collection findStudentsWithAFamily(int fid)
    	throws FinderException, RemoteException;

  public Collection findStudentsWithBooksTitled(String title)
    	throws FinderException, RemoteException;
}

⌨️ 快捷键说明

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