package com.ibm.commerce.sample.databeans;
import com.ibm.commerce.beans.SmartDataBean;
import com.ibm.commerce.command.CommandContext;
import com.ibm.commerce.datatype.TypedProperty;
import com.ibm.ejb.sample.XBonusEJBAccessBean;
public class XBonusEJBDataBean extends XBonusEJBAccessBean implements
SmartDataBean {
CommandContext cmdCtx;
TypedProperty reqProp;
String userId;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
if (this.userId != null)
this.setInitKey_memberId(new Long(userId));
}
@Override
public CommandContext getCommandContext() {
// TODO Auto-generated method stub
return cmdCtx;
}
@Override
public void populate() throws Exception {
// TODO Auto-generated method stub
setUserId(getRequestProperties().getString("taskOutputUserId"));
try {
super.refreshCopyHelper();
} catch (Exception e) {
}
}
@Override
public void setCommandContext(CommandContext cmdCtx) {
// TODO Auto-generated method stub
this.cmdCtx = cmdCtx;
}
@Override
public TypedProperty getRequestProperties() {
// TODO Auto-generated method stub
return reqProp;
}
@Override
public void setRequestProperties(TypedProperty reqProp) throws Exception {
// TODO Auto-generated method stub
this.reqProp = reqProp;
}
public XBonusEJBDataBean() {
super();
// TODO Auto-generated constructor stub
}
public XBonusEJBDataBean(XBonusEJBAccessBean bAB) {
try {
super.setEJBRef(bAB.getEJBRef());
} catch (Exception e) {
}
}
}
No comments:
Post a Comment