src/com/demo/dao/ClothesDao.java
(完整代码) 1KBpackage com.demo.dao;
import java.util.List;
import com.demo.model.Clothes;
import com.demo.model.Clothes;
/**
* dao层接口-对数据库:商品表的操作
* @author shao
*/
public interface ClothesDao {
/**
* 创建一个新商品
* @param clothes
*/
void add(Clothes clothes);
/**
* 获取一个商品
* @param id
* @return Clothes
*/
Clothes find(String id);
/**
* 获取商品列表分页数据
* @param startIndex
* @param pageSize
* @return List<Clothes>
*/
public List<Clothes> getPageData(int startIndex, int pageSize);
/**
* 获取商品列表总数
* @return int
*/
public int getTotalRecord();
/**
* 获取指定分类下的商品列表分页数据
* @param startIndex
* @param pageSize
* @param categoryId
* @return List<Clothes>
*/
public List<Clothes> getPageData(int startIndex, int pageSize, String categoryId);
/**
* 获取指定分类下的商品列表总数
* @param categoryId
* @return int
*/
public int getTotalRecord(String categoryId);
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。