usersrolesbean.java

来自「展示使用J2EE容器实现安全机制」· Java 代码 · 共 40 行

JAVA
40
字号
package com.jdon.security.auth.ejb;import javax.ejb.*;abstract public class UsersRolesBean implements EntityBean {  EntityContext entityContext;  public java.lang.String ejbCreate(java.lang.String userId, java.lang.String roleId) throws CreateException {    setUserId(userId);    setRoleId(roleId);      return null;  }  public void ejbPostCreate(java.lang.String userId, java.lang.String roleId) throws CreateException {    /**@todo Complete this method*/  }  public void ejbRemove() throws RemoveException {    /**@todo Complete this method*/  }  public abstract void setUserId(java.lang.String userId);  public abstract void setRoleId(java.lang.String roleId);  public abstract java.lang.String getUserId();  public abstract java.lang.String getRoleId();  public void ejbLoad() {    /**@todo Complete this method*/  }  public void ejbStore() {    /**@todo Complete this method*/  }  public void ejbActivate() {    /**@todo Complete this method*/  }  public void ejbPassivate() {    /**@todo Complete this method*/  }  public void unsetEntityContext() {    this.entityContext = null;  }  public void setEntityContext(EntityContext entityContext) {    this.entityContext = entityContext;  }}

⌨️ 快捷键说明

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