Magazine
 
Shopping Cart
 





MODEL SECTION

The Business layer is responsible for processing the application’s business logic. The Business layer is responsible for managing a cart. It creates a epresentation
of a new cart object needed to choose, remove and update the various items in the cart, and then communicate with the Data Access layer to store a representation of the cart in the database. The Data Access layer is responsible for writing and retrieving data to and from the database, and returning the results to the Business layer.

The Model is organized into six packages where classes are devoted to interact with the database and to process business logic.

1. The roseIndia.dao package contains the ShoppingCartDAOImpl class implementing the ShoppingCartDAO interface. ShoppingCartDAOImpl class deals with all database related concern of administrator and customer sections of the application.

 



2. Package roseindia.dao.hibernate contains 7 java classes and 7 hibernate mapping xml documents (*.hbm.xml). These classes and xml documents does java-
Object relational mapping with the underlying database.

July 2007 | Java Jazz Up | 45
 
previous
index
next
 
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53 ,            Download PDF