01: package com.odal.petstore.persistence.iface;
02:
03: import com.odal.petstore.domain.Order;
04: import com.odal.petstore.OdalPetstoreException;
05:
06: import java.util.List;
07:
08: /**
09: * @author Gennady Krizhevsky
10: */
11: public interface OrderDao {
12: List getOrdersByUsername(String username, int pageNumber)
13: throws OdalPetstoreException;
14:
15: Order getOrder(long orderId) throws OdalPetstoreException;
16:
17: void insertOrder(Order order) throws OdalPetstoreException;
18: }
|