catalogdao.java

来自「用JBuilder+Jboos+mysql实现的EJB项目」· Java 代码 · 共 35 行

JAVA
35
字号
package com.jdon.estore.catalog.dao;

import com.jdon.estore.model.*;
import com.jdon.controller.model.PageIterator;

/**
 * getCategories、getProducts都是返回实体的ID集合
 *
 * <p>Copyright: Jdon.com Copyright (c) 2003</p>
 * <p>Company: 上海解道计算机技术有限公司</p>
 * @author not attributable
 * @version 1.0
 */
public interface CatalogDAO {
  public Category getCategory(String catId) throws Exception;

  public int getCategoryAllCount() throws Exception;
  public PageIterator getCategories(int start, int count) throws Exception;

  public Product getProduct(String productId) throws Exception;
  public int getProductAllCount(String catId) throws Exception;
  public PageIterator getProducts(String catId, int start, int count) throws
      Exception;

  public Item getItem(String itemId) throws Exception;

  public PageIterator getItems(String productId, int start, int size) throws
      Exception;

  public PageIterator searchItems(String query, int start, int size) throws
      Exception;

  public byte[] getImage(String Id) throws Exception;

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?