fundbean.java

来自「EJB+Struts+Webservice实现的开放式基金管理系统」· Java 代码 · 共 165 行

JAVA
165
字号
package com.fund.fund;

import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.CreateException;
import javax.ejb.RemoveException;
import java.sql.Timestamp;

/**
 *
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public abstract class FundBean implements EntityBean {
    /**
     * entityContext
     */
    EntityContext entityContext;
    /**
     *
     * @param fundNo Integer
     * @return Integer
     * @throws CreateException e
     */
    public Integer ejbCreate(Integer fundNo) throws CreateException {
        setFundNo(fundNo);
        return null;
    }

    /**
     *
     * @param fundNo Integer
     * @throws CreateException e
     */
    public void ejbPostCreate(Integer fundNo) throws CreateException {
    }

    /**
     *
     * @throws RemoveException e
     */
    public void ejbRemove() throws RemoveException {
    }

    /**
     *
     * @param fundNo Integer
     */
    public abstract void setFundNo(Integer fundNo);

    /**
     *
     * @return Integer
     */
    public abstract Integer getFundNo();

    /**
     *
     * @param fundName String
     */
    public abstract void setFundName(String fundName);

    /**
     *
     * @return String
     */
    public abstract String getFundName();

    /**
     *
     * @param price Double
     */
    public abstract void setPrice(Double price);

    /**
     *
     * @return Double
     */
    public abstract Double getPrice();

    /**
     *
     * @param description String
     */
    public abstract void setDescription(String description);

    /**
     *
     * @return String
     */
    public abstract String getDescription();

    /**
     *
     * @param status String
     */
    public abstract void setStatus(String status);

    /**
     *
     * @return String
     */
    public abstract String getStatus();

    /**
     *
     * @param createdDate Timestamp
     */
    public abstract void setCreatedDate(Timestamp createdDate);

    /**
     *Timestamp
     * @return Timestamp
     */
    public abstract Timestamp getCreatedDate();

    /**
     *ejbLoad
     */
    public void ejbLoad() {
    }

    /**
     *ejbStore
     */
    public void ejbStore() {
    }

    /**
     *ejbActivate
     */
    public void ejbActivate() {
    }

    /**
     *ejbPassivate
     */
    public void ejbPassivate() {
    }

    /**
     *unsetEntityContext
     */
    public void unsetEntityContext() {
        this.entityContext = null;
    }

    /**
     *
     * @param entityContext EntityContext
     */
    public void setEntityContext(EntityContext entityContext) {
        this.entityContext = entityContext;
    }

}

⌨️ 快捷键说明

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