Name-value pair command framework
The name-value pair framework is the only command framework that existed in releases of WebSphere Commerce version 6, prior to Feature Pack 3.0.1. This command framework uses name-value pairs as input to the business logic layer, and returns the responses as name-value pairs.In Feature Pack 3.0.1, the WebSphere Commerce BOD command framework was introduced, which provides an alternate means to model and assemble your business logic layer. The name-value pair command framework was assigned a name to distinguish it from the new, noun-based, command framework.
- Command types
WebSphere Commerce commands are Java beans that contain the programming logic associated with handling a particular request. Commands perform a specific business process, such as adding a product to the shopping cart, processing an order, updating a customer's address book, or displaying a specific product page.- WebSphere Commerce data beans
WebSphere Commerce and the WebSphere Commerce development environment include a set of Java beans, called WebSphere Commerce data beans, that access information from the tables in the database. Creating store pages using these beans allows you to display information that may change often, such as catalog groups and product lists, or product prices.- Command error handling
WebSphere Commerce uses a well-defined command error handling framework that is simple to use in customized code. By design, the framework handles errors in a manner that supports multicultural stores. The following sections describe the types of exceptions that a command can throw, how the exceptions are handled, how message text is stored and used, how the exceptions are logged, and how to use the provided framework in your own commands.