📄 classroombean.java
字号:
/* * Created on 2003-7-21 */package com.liuyang.ejb.cmp.Classroom;import javax.ejb.CreateException;import javax.ejb.EntityBean;import javax.ejb.EntityContext;/** * @author * <a href="mailto:jdcyang@yahoo.com.cn">刘洋</a> */public abstract class ClassroomBean implements EntityBean { protected EntityContext ctx; public abstract String getRoomId(); public abstract void setRoomId(String roomId); public String ejbCreate(String roomId) throws CreateException { if (roomId == null) { throw new CreateException("room id is null"); } setRoomId(roomId); return null; } public void ejbPostCreate(String roomId) { } public void setEntityContext(EntityContext ctx) { this.ctx = ctx; } public void unsetEntityContext() { ctx = null; } public void ejbActivate() { } public void ejbPassivate() { } public void ejbLoad() { } public void ejbStore() { } public void ejbRemove() { }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -