com.ibm.commerce.command
Class DataBeanCommandImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.DataBeanCommandImpl
All Implemented Interfaces:
DataBeanCommand, ECCommand, ECTargetableCommand
Direct Known Subclasses:
ControlRuleListBeanCmdImpl, OpenCryBidControlRuleBeanCmdImpl, SealedBidControlRuleBeanCmdImpl

public abstract class DataBeanCommandImpl
extends AbstractECTargetableCommand
implements DataBeanCommand

This class defines the base behavior for all DataBean commands.

See Also:
Serialized Form

Field Summary
protected DataBean dataBean
static java.lang.String emptyString
static java.lang.String EURO_CODE
protected TypedProperty requestProperties
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
DataBeanCommandImpl()
Method Summary
protected static java.lang.String convertToString(java.lang.Object obj)
Returns a string representation of the object.
DataBean getDataBean()
Gets the data bean associated with this data bean command
void populateDataBeanCommand(InputDataBean aDataBean)
Populates the input data bean.
void setDataBean(DataBean newDataBean)
Sets the data bean associated with this command.
void setRequestProperties(TypedProperty val)
Sets request properties associated with this command.
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

requestProperties

protected TypedProperty requestProperties

dataBean

protected DataBean dataBean

EURO_CODE

public static final java.lang.String EURO_CODE
See Also:
Constant Field Values

emptyString

public static final java.lang.String emptyString
Constructor Detail

DataBeanCommandImpl

public DataBeanCommandImpl()
Method Detail

convertToString

protected static java.lang.String convertToString(java.lang.Object obj)
Returns a string representation of the object. Return an empty string if object is null.
Parameters:
obj - input Object
Returns:
string representation of the object

getDataBean

public final DataBean getDataBean()
Gets the data bean associated with this data bean command
Specified by:
getDataBean in interface DataBeanCommand
Returns:
DataBean object

populateDataBeanCommand

public void populateDataBeanCommand(InputDataBean aDataBean)
Populates the input data bean.
Parameters:
aDataBean - the data bean object to be populated.

setDataBean

public final void setDataBean(DataBean newDataBean)
Sets the data bean associated with this command.
Specified by:
setDataBean in interface DataBeanCommand
Parameters:
newDataBean - the data bean object

setRequestProperties

public void setRequestProperties(TypedProperty val)
Sets request properties associated with this command.
Specified by:
setRequestProperties in interface DataBeanCommand
Parameters:
val - TypedProperties

Feedback