KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > johnmammen > betterpetshop > service > dao > IProductDAO


1 /*
2  * Copyright 2004 John S. Mammen
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5  * use this file except in compliance with the License. You may obtain a copy of
6  * the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13  * License for the specific language governing permissions and limitations under
14  * the License.
15  */

16 package johnmammen.betterpetshop.service.dao;
17
18 import java.io.Serializable JavaDoc;
19 import java.sql.SQLException JavaDoc;
20
21 import org.apache.tapestry.pets.domain.model.IInventory;
22 import org.apache.tapestry.pets.domain.model.IItem;
23 import org.apache.tapestry.pets.domain.model.IProduct;
24
25
26 /**
27  * @author admin
28  *
29  */

30 public interface IProductDAO extends Serializable JavaDoc {
31
32     /**
33      * @return @throws
34      * SQLException
35      */

36     public abstract IProduct[] getProducts() throws SQLException JavaDoc;
37
38     /**
39      * @param prodid
40      * @return
41      */

42     public abstract IItem[] getItemsByProduct(String JavaDoc prodid);
43
44     /**
45      * @param itemID
46      * @return
47      */

48     public abstract IItem getItem(String JavaDoc itemID);
49
50     /**
51      * @param catid
52      * @return
53      */

54     public abstract IProduct[] findByCategory(String JavaDoc catid);
55
56     /**
57      * @param searchText
58      * @return
59      */

60     public abstract IProduct[] findBySearchCriteria(String JavaDoc searchText);
61
62     /**
63      * @param csvItemList
64      * @return
65      */

66     public IInventory[] getInventory(String JavaDoc csvItemList);
67
68 }
Popular Tags