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

📄 scriptbean.java

📁 openacs source for CPE wan management
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package org.openacs;import javax.ejb.CreateException;import javax.ejb.EntityBean;import javax.ejb.EntityContext;/** * * @author Administrator */public abstract class ScriptBean implements EntityBean {    private EntityContext context;        // <editor-fold defaultstate="collapsed" desc="EJB infrastructure methods. Click on the + sign on the left to edit the code.">    // TODO Consider creating Transfer Object to encapsulate data    // TODO Review finder methods    /**     * @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext)     */    public void setEntityContext(EntityContext aContext) {        context = aContext;    }        /**     * @see javax.ejb.EntityBean#ejbActivate()     */    public void ejbActivate() {            }        /**     * @see javax.ejb.EntityBean#ejbPassivate()     */    public void ejbPassivate() {            }        /**     * @see javax.ejb.EntityBean#ejbRemove()     */    public void ejbRemove() {            }        /**     * @see javax.ejb.EntityBean#unsetEntityContext()     */    public void unsetEntityContext() {        context = null;    }        /**     * @see javax.ejb.EntityBean#ejbLoad()     */    public void ejbLoad() {            }        /**     * @see javax.ejb.EntityBean#ejbStore()     */    public void ejbStore() {            }    // </editor-fold>        public abstract String getName ();    public abstract void setName(String key);        public String ejbCreate(String key)  throws CreateException {        if (key == null) {            throw new CreateException("The field \"key\" must not be null");        }                // TODO add additional validation code, throw CreateException if data is not valid        setName(key);        return null;    }    public void ejbPostCreate(String key) {        // TODO populate relationships here if appropriate    }    public abstract byte [] getScript();    public abstract void setScript(byte [] script);    public abstract String getDescription();    public abstract void setDescription(String description);}

⌨️ 快捷键说明

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