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

📄 conceptevent.java

📁 《Java网络程序设计.rar》包括三个网络程序的源代码。
💻 JAVA
字号:
/* */package org.impact.stars.control.event;import java.util.Collection;import java.io.Serializable;import java.sql.Date;import org.impact.stars.conceptmd.concept.model.ConceptModel;/** * This event is sent from the web tier to the EJB Controller to notify * the EJB Controller that the user wants to change the CONCEPT model * data. */public class ConceptEvent extends StarsEventSupport {    public static final int CREATE_CONCEPT = 0;    public static final int CREATE_CONCEPT_DATA = 1;    public static final int DELETE_CONCEPT = 2;    public static final int UPDATE_CONCEPT = 3;    public static final int UPDATE_CONCEPT_DATA = 4;        //static final long serialVersionUID = 1;    private int actionType;    private String conceptID;    private String cstrID;    private String definition;    private String description;    private String name;    private String parentID;    private Date proposetime;    private String pstakeholder;    private String shared;    private String type;    private int requestId;    public ConceptEvent() {}    public void setInfo(int aactiontype, int requestId,        String cstrID, String definition,        String name,String description,        String parentID,Date proposetime,        String pstakeholder, String conceptID,        String shared, String type) {                    this.actionType = aactiontype;        this.requestId = requestId;        this.cstrID =cstrID;        this.definition = definition;        this.name = name;        this.description = description;        this.parentID = parentID;        this.proposetime = proposetime;        this.pstakeholder = pstakeholder;        this.conceptID = conceptID;        this.shared = shared;        this.type = type;    }        public void setInfo(int aactiontype, String cstrID, String conceptID) {                                  this.actionType = aactiontype;        //this.requestId = requestId;        this.cstrID =cstrID;        this.conceptID =conceptID;    }            public void setInfo(int aactiontype, int requestId, String cstrID, ConceptModel cptml)     {                    this.actionType = aactiontype;        this.requestId = requestId;        this.cstrID = cstrID;        this.definition = cptml.getDefinition();        this.name = cptml.getName();        this.description = cptml.getDescription();        this.parentID = cptml.getParentID();        this.proposetime = cptml.getProposetime();        this.pstakeholder = cptml.getPstakeholder();        this.conceptID = cptml.getConceptID();        this.shared = cptml.getShared();        this.type = cptml.getType();    }        public String getShared() {        return shared;    }    public int getActionType() {        return actionType;    }    public String getDefinition() {        return definition;    }    public String getCstrID() {        return cstrID;    }    public String getName() {        return name;    }    public String getDescription() {        return description;    }    public String getParentID() {        return parentID;    }    public Date getProposetime() {        return proposetime;    }    public String getConceptID() {        return conceptID;    }        public void setConceptID(String cptid) {        conceptID = cptid;    }    public String getPstakeholder() {        return pstakeholder;    }    public int getRequestId() {        return requestId;    }        public String getType() {        return type;    }        public String getEventName() {        return "java:comp/env/event/ConceptEvent";    }}

⌨️ 快捷键说明

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