Develop > Business logic > Name-value pair command framework > Command types


Data bean commands

A command data bean relies on a command to retrieve its data and is a more lightweight data bean. The command retrieves all attributes for the data bean at once, regardless of whether the JSP page requires them. As a result, for JSP pages that use only a selection of attributes from the data bean, a command data bean may be costly in terms of performance time. While access control can be enforced on a data bean level when using the smart data bean, this is not true for command data bean. Only use command data bean if using a smart data bean is impractical.

The following diagram illustrates the relationship between the implementation class and interface of a new data bean command with the existing abstract implementation class and interface. The abstract class and interface are both found in the com.ibm.commerce.command package.

Diagram illustrating the relationship between the implementation class and interface of a new data bean command with the existing abstract implementation class and interface: MyDataBeanCmdImpl extends DataBeanCommandImpl, and MyDataBeanCmd extends DataBeanCommand.


Related concepts

Command types


+

Search Tips   |   Advanced Search