com.sun.j2ee.blueprints.shoppingcart.catalog.model
Class CatalogDAO

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.shoppingcart.catalog.model.CatalogDAO

public class CatalogDAO
extends java.lang.Object

This class encapsulates all the SQL calls made by Catalog EJB. This layer maps the relational data stored in the database to the objects needed by Catalog EJB.


Constructor Summary
CatalogDAO()
           
 
Method Summary
 ListChunk getCategories(int startIndex, int count, java.util.Locale locale)
           
 Category getCategory(java.lang.String categoryId, java.util.Locale locale)
           
 Item getItem(java.lang.String itemId, java.util.Locale locale)
           
 ListChunk getItems(java.lang.String productId, int startIndex, int count, java.util.Locale locale)
           
 Product getProduct(java.lang.String productId, java.util.Locale locale)
           
 ListChunk getProducts(java.lang.String categoryId, int startIndex, int count, java.util.Locale locale)
           
 ListChunk searchProducts(java.util.Collection keyWords, int startIndex, int count, java.util.Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogDAO

public CatalogDAO()
           throws CatalogDAOException
Method Detail

getCategory

public Category getCategory(java.lang.String categoryId,
                            java.util.Locale locale)
                     throws CatalogDAOException

getCategories

public ListChunk getCategories(int startIndex,
                               int count,
                               java.util.Locale locale)
                        throws CatalogDAOException

getProduct

public Product getProduct(java.lang.String productId,
                          java.util.Locale locale)
                   throws CatalogDAOException

getProducts

public ListChunk getProducts(java.lang.String categoryId,
                             int startIndex,
                             int count,
                             java.util.Locale locale)
                      throws CatalogDAOException

getItem

public Item getItem(java.lang.String itemId,
                    java.util.Locale locale)
             throws CatalogDAOException

getItems

public ListChunk getItems(java.lang.String productId,
                          int startIndex,
                          int count,
                          java.util.Locale locale)
                   throws CatalogDAOException

searchProducts

public ListChunk searchProducts(java.util.Collection keyWords,
                                int startIndex,
                                int count,
                                java.util.Locale locale)
                         throws CatalogDAOException


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.