📄 goodpackbean.java
字号:
package sessEJB;
import java.util.HashMap;
/**
* Bean implementation class for Enterprise Bean: GoodPack
*/
public class GoodPackBean implements javax.ejb.SessionBean {
private javax.ejb.SessionContext mySessionCtx;
public HashMap temp=new HashMap();
public HashMap addGood(GoodInfoDes goodInfoDes){
temp.put(goodInfoDes.getGoodId(),goodInfoDes);
return temp;
};
/**
* Method removeGood.
* @param string
*/
public void removeGood(String string){};
/**
* getSessionContext
*/
public javax.ejb.SessionContext getSessionContext() {
return mySessionCtx;
}
/**
* setSessionContext
*/
public void setSessionContext(javax.ejb.SessionContext ctx) {
mySessionCtx = ctx;
}
/**
* ejbCreate
*/
public void ejbCreate() throws javax.ejb.CreateException {
}
/**
* ejbActivate
*/
public void ejbActivate() {
}
/**
* ejbPassivate
*/
public void ejbPassivate() {
}
/**
* ejbRemove
*/
public void ejbRemove() {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -