teacher.java
来自「精通java核心技术》随书源代码」· Java 代码 · 共 52 行
JAVA
52 行
// ==================== Program Discription ==========================
// 程序名称:示例18-13 : Teacher.java
// 程序目的:实体Bean Remote接口
// ==============================================================
import java.rmi.RemoteException;
import javax.ejb.*;
public interface Teacher extends EJBObject
{
public String getId()throws RemoteException;
/**
* @J2EE_METHOD -- getDegree
*/
public String getDegree () throws RemoteException;
/**
* @J2EE_METHOD -- setDegree
*/
public void setDegree (String newDegree) throws RemoteException;
/**
* @J2EE_METHOD -- getStudents
*/
public java.util.Collection getStudents () throws RemoteException;
/**
* @J2EE_METHOD -- setStudents
*/
public void setStudents (java.util.Collection newStudents) throws RemoteException;
/**
* @J2EE_METHOD -- getDepartment
*/
public String getDepartment () throws RemoteException;
/**
* @J2EE_METHOD -- setDepartment
*/
public void setDepartment (String newDepartment) throws RemoteException;
/**
* @J2EE_METHOD -- getAddress
*/
public Address getAddress () throws RemoteException;
/**
* @J2EE_METHOD -- setAddress
*/
public void setAddress (Address newAddress) throws RemoteException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?