PetStore Shopping Cart Module

xiaoxiao2021-03-06  37

SHOPPING CART, it is clear that it is always necessary to exist and save the user's selection information during a user's shopping, so it is the most appropriate selection with Stateful Session Bean. The associated interfaces and classes are: ShoppingCartLocalHome, ShoppingCartLocal, and ShoppingCart. There is a CARTITEM HashMap in the ShoppingCart class to save the information selected by the user.

In EJB Control, GetShoppingClientFacade method returns an application of a ShoppingClientFacadelocal interface, and its getShoppingCart method returns the current use of Shopping Cart.

Class Diagram:

转载请注明原文地址:https://www.9cbs.com/read-71654.html

New Post(0)