package qi.yun.dong.dao;

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

public interface IMyBaseDao<E> {

	/**
	 * 根据id查询实体
	 *@param id
	 *@return
	 *@autor:dongyunqi
	 *@createDate:2014-10-15下午2:54:03
	 */
	public E findById(Serializable id);
	
	/**
	 * 查询所有实体
	 *@return
	 *@autor:dongyunqi
	 *@createDate:2014-10-15下午2:54:58
	 */
	public List<E> findAll();
	
	/**
	 * 根据hql查询数据的总计路数
	 *@param whereHql
	 *@return
	 *@autor:dongyunqi
	 *@createDate:2014-10-15下午2:56:20
	 */
	public Integer findCount(final String whereHql);
	
	/**
	 * 查询当前页的信息
	 *@param whereHql
	 *@param from 数据查询起始位置
	 *@param size 查询的数据量
	 *@return
	 *@autor:dongyunqi
	 *@createDate:2014-10-15下午2:57:51
	 */
	public List<E> findByPage(final String whereHql, final int from, final int size);
	
	/**
	 * 更新或添加实体
	 *@param instance
	 *@autor:dongyunqi
	 *@createDate:2014-10-15下午2:59:37
	 */
	public void saveOrUpdate(E instance);
	
	/**
	 * 删除实体
	 *@param instace
	 *@autor:dongyunqi
	 *@createDate:2014-10-15下午3:00:43
	 */
	public void delete(E instace);
}












































最近下载更多
newnu88  LV12 2020年2月17日
aa991215  LV17 2019年6月1日
admindiu  LV1 2019年3月19日
Marin_qing  LV1 2018年7月30日
ztz111  LV1 2018年7月11日
es123123  LV1 2018年7月7日
13545229093  LV1 2018年6月13日
zr616819363  LV2 2018年5月5日
zaihuishou1018  LV1 2018年4月24日
lvtao777  LV11 2018年4月12日
最近浏览更多
不知道取什么名字12  LV1 2022年12月14日
sssfyy 2022年7月26日
暂无贡献等级
zhao1546  LV3 2022年5月6日
wenglaoshi  LV2 2021年12月21日
hihihhjhjijijjjhjk  LV2 2021年12月4日
公司了 2021年6月25日
暂无贡献等级
小豆12138  LV1 2021年4月15日
liuguojun920  LV6 2021年2月24日
0592lyj  LV9 2020年12月10日
network_sec  LV6 2020年11月23日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友