basepropertyentitybean.java

来自「JAVA做的J2EE下CA认证系统 基于EJB开发」· Java 代码 · 共 114 行

JAVA
114
字号
/************************************************************************* *                                                                       * *  EJBCA: The OpenSource Certificate Authority                          * *                                                                       * *  This software is free software; you can redistribute it and/or       * *  modify it under the terms of the GNU Lesser General Public           * *  License as published by the Free Software Foundation; either         * *  version 2.1 of the License, or any later version.                    * *                                                                       * *  See terms of license at gnu.org.                                     * *                                                                       * *************************************************************************/package se.anatom.ejbca;import javax.ejb.CreateException;/** * Base class for property entity beans implementing required methods and helpers. * A property entity bean extends other entity beans with propertys. * * Primary Key is a combined id and property hash. * id (String) primary key of entity bean using this property entity bean. * property String should be one of the property constants. * value (String) the value of the property. * * @version $Id: BasePropertyEntityBean.java,v 1.0 2003/12/26 12:37:16 herrvendil Exp * * @ejb.bean *	 generate="false" *   view-type="local" *   cmp-version="2.x" * * @ejb.pk *   class="se.anatom.ejbca.PropertyEntityPK" *   extends="java.lang.Object" * * @ejb.home *   generate="local" *   local-extends="javax.ejb.EJBLocalHome" *   local-class="se.anatom.ejbca.BasePropertyDataLocalHome" * * @ejb.interface *   generate="local" *   local-extends="javax.ejb.EJBLocalObject" *   local-class="se.anatom.ejbca.BasePropertyDataLocal" */public abstract class BasePropertyEntityBean extends BaseEntityBean {    /**     * @ejb.persistence     * @ejb.pk-field     * @ejb.interface-method     */	public abstract String getId();    /**     * @ejb.persistence     */	public abstract void setId(String id);    /**     * @ejb.persistence     * @ejb.pk-field     * @ejb.interface-method     */	public abstract String getProperty();    /**     * @ejb.persistence     */	public abstract void setProperty(String property);    /**     * @ejb.persistence     * @ejb.interface-method     */	public abstract String getValue();    /**     * @ejb.persistence     * @ejb.interface-method     */	public abstract void setValue(String value);    /**     * Creates a new BasePropertyEntityBean object.     */    public BasePropertyEntityBean() {        super();    }	/**	 * Entity Bean holding data of a raadmin profile.	 * @return PropertyEntityPK beeing the PrimaryKey for the created entity     * @ejb.create-method     */	public PropertyEntityPK ejbCreate(String id, String property, String value)	       throws CreateException {	    PropertyEntityPK pk = new PropertyEntityPK(id,property);		setId(id);		setProperty(property);		setValue(value);		return pk;	}	public void ejbPostCreate(String id, String property, String value) {		// Do nothing. Required.	}}

⌨️ 快捷键说明

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