KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > jpetstore > domain > logic > PetStoreFacade


1 package org.springframework.samples.jpetstore.domain.logic;
2
3 import java.util.List JavaDoc;
4
5 import org.springframework.samples.jpetstore.domain.Account;
6 import org.springframework.samples.jpetstore.domain.Category;
7 import org.springframework.samples.jpetstore.domain.Item;
8 import org.springframework.samples.jpetstore.domain.Order;
9 import org.springframework.samples.jpetstore.domain.Product;
10
11 /**
12  * JPetStore primary business interface.
13  *
14  * @author Juergen Hoeller
15  * @since 30.11.2003
16  */

17 public interface PetStoreFacade {
18
19     Account getAccount(String JavaDoc username);
20
21     Account getAccount(String JavaDoc username, String JavaDoc password);
22
23     void insertAccount(Account account);
24
25     void updateAccount(Account account);
26
27     List JavaDoc getUsernameList();
28
29
30     List JavaDoc getCategoryList();
31
32     Category getCategory(String JavaDoc categoryId);
33     
34
35     List JavaDoc getProductListByCategory(String JavaDoc categoryId);
36
37     List JavaDoc searchProductList(String JavaDoc keywords);
38
39     Product getProduct(String JavaDoc productId);
40
41
42     List JavaDoc getItemListByProduct(String JavaDoc productId);
43
44     Item getItem(String JavaDoc itemId);
45
46     boolean isItemInStock(String JavaDoc itemId);
47
48
49     void insertOrder(Order order);
50
51     Order getOrder(int orderId);
52
53     List JavaDoc getOrdersByUsername(String JavaDoc username);
54
55 }
56
Popular Tags