Modifier and Type | Field and Description |
---|---|
private EntityManager |
em |
Constructor and Description |
---|
JPAOrderDAO() |
Modifier and Type | Method and Description |
---|---|
Order |
createOrder(Order order) |
Order |
getOrder(long orderId) |
List<Order> |
getOrders(int index,
int count) |
List<Order> |
getOrders(String queryString,
Map<String,Object> params,
int index,
int count) |
List<Order> |
getOrdersforItem(long itemId,
int index,
int count) |
void |
setEntityManager(EntityManager em) |
Order |
updateOrder(Order order) |
private EntityManager em
public void setEntityManager(EntityManager em)
public Order createOrder(Order order)
createOrder
in interface OrderDAO
public List<Order> getOrdersforItem(long itemId, int index, int count)
getOrdersforItem
in interface OrderDAO
public Order updateOrder(Order order)
updateOrder
in interface OrderDAO
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.