?? basepropertyentitybean.java
字號:
/************************************************************************* * * * 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 */public abstract class BasePropertyEntityBean extends BaseEntityBean { public abstract String getId(); public abstract void setId(String id); public abstract String getProperty(); public abstract void setProperty(String property); public abstract String getValue(); 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 */ 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -