package com.edianxun.adp.dao;

import java.io.Serializable;
import java.util.List;

/**
 * CRUD通用接口
 * @author lhr
 *	@ date 2014-4-21
 * @param <T>
 */
public interface BaseDao<T> {
	//根据Id加载实体
	T get(Class<T> entityClass, Serializable id);
	//保存实体
	Serializable save(T entity);
	//更新实体
	void update(T entity);
	//删除实体
	void delete(T entity);
	//根据ID删除实体
	void delete(Class<T> entityClass, Serializable id);
	//获取所有实体
	List<T> findAll(Class<T> entityClass);
	//获取所有实体数量
	Long allTotal(Class<T> entityClass);
}
最近下载更多
educationAAA  LV11 2024年6月23日
17787885952  LV3 2022年5月5日
wanglinddad  LV55 2022年4月14日
王燕燕  LV3 2021年12月23日
afei115  LV4 2021年11月20日
cailizhu833  LV2 2021年8月17日
Vera.Wu  LV2 2021年5月29日
and123456  LV11 2021年4月20日
admin_z  LV22 2021年4月18日
最近浏览更多
liry_mbzj  LV1 8月31日
飒飒说  LV1 7月7日
sjwc88  LV4 2024年12月4日
isssssss7 2024年10月13日
暂无贡献等级
Alan rui  LV1 2024年8月1日
暂无贡献等级
cccccc1235 2024年5月22日
暂无贡献等级
ruo12138  LV1 2024年5月2日
educationAAA  LV11 2024年4月18日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友