1 /*2 * Copyright 2004 John S. Mammen3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not5 * use this file except in compliance with the License. You may obtain a copy of6 * the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the13 * License for the specific language governing permissions and limitations under14 * the License.15 */16 package johnmammen.betterpetshop.service.dao;17 18 import java.io.Serializable ;19 import java.sql.SQLException ;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 admin28 * 29 */30 public interface IProductDAO extends Serializable {31 32 /**33 * @return @throws34 * SQLException35 */36 public abstract IProduct[] getProducts() throws SQLException ;37 38 /**39 * @param prodid40 * @return41 */42 public abstract IItem[] getItemsByProduct(String prodid);43 44 /**45 * @param itemID46 * @return47 */48 public abstract IItem getItem(String itemID);49 50 /**51 * @param catid52 * @return53 */54 public abstract IProduct[] findByCategory(String catid);55 56 /**57 * @param searchText58 * @return59 */60 public abstract IProduct[] findBySearchCriteria(String searchText);61 62 /**63 * @param csvItemList64 * @return65 */66 public IInventory[] getInventory(String csvItemList);67 68 }