⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 teacherejb.java

📁 精通Java核心技术源代码
💻 JAVA
字号:
// ==================== Program Discription ==========================
//   程序名称:示例18-13 : TeacherEJB.java
//   程序目的:实体Bean实现类
// ==============================================================
import java.rmi.RemoteException;
import javax.ejb.*;

public abstract class TeacherEJB implements EntityBean
{
    /**
     * Attributes declaration
    */
    public EntityContext EJB_Context;   
       
    
    public String ejbCreate    (String id) throws CreateException 
    { 
 		setId(id);
 		return null;    
    }
    
    public void ejbPostCreate    (String id) throws CreateException 
    { 

    }
    
    
    public void ejbActivate    ()  
    { 

    }
    
    
    public void ejbPassivate    ()  
    { 

    }
    
    
    public void ejbLoad    ()  
    { 

    }
    
    
    public void ejbStore    ()  
    { 

    }
    
    
    public void ejbRemove    () throws RemoveException 
    { 

    }
    
    
    public void setEntityContext    (EntityContext ctx)  
    { 

    }
    
    
    public void unsetEntityContext    ()  
    { 

    }    
    
    public abstract String getDegree    (); 
    public abstract void setDegree    (String newDegree); 
    public abstract java.util.Collection getStudents    (); 
      
    public abstract void setStudents    (java.util.Collection newStudents); 
    public abstract String getDepartment    ();     
   
    public abstract void setDepartment    (String newDepartment); 
    
   
    public abstract Address getAddress    (); 
    
    public abstract void setAddress    (Address newAddress); 
    public abstract String getId();
    public abstract void setId(String id);
}

⌨️ 快捷键说明

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