| Modifier and Type | Field and Description |
|---|---|
private EntityManager |
em |
private static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
CatalogImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
addToCart(int id,
String email)
Adds the selected product to the users' shopping cart and returns
the count of items.
|
List<Product> |
getProducts(int offset,
int limit)
Returns a list of products in the catalog chunked into page sizes.
|
void |
setEntityManager(EntityManager entityManager) |
private static final org.apache.commons.logging.Log log
private EntityManager em
public void setEntityManager(EntityManager entityManager)
public List<Product> getProducts(int offset, int limit)
CataloggetProducts in interface CatalogCopyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.