首页>代码>s2sh+dwr框架整合实例>/BaseProject/src/com/anxin/dao/BaseDAO.java
package com.anxin.dao;

import java.util.List;

import com.anxin.util.PageListData;

public interface BaseDAO<T,PK> {
	public void save(T entity);
	public void delete(T entity);
	public void deleteById(Class<T> entityClass, PK id);
	public void saveOrUpdate(T entity);
	public List<T> findAll(Class<T> entityClass);
	public PageListData findList(Class<T> entityClass, String hql, Object[] params, int currentPage, int pageSize);
	public List<T> findByProperty(Class<T> entityClass, String propertyName, Object value,int type);
	public T findById(Class<T> entityClass, PK id);
}
最近下载更多
wangzile1994  LV12 2020年3月30日
guonan991388  LV2 2019年5月29日
不良人  LV6 2018年10月31日
zshengfei  LV3 2018年9月5日
260858883  LV4 2018年4月12日
李洪健  LV12 2018年1月19日
suiyue448  LV11 2017年8月10日
qazxsw111  LV11 2017年7月27日
litianlong  LV1 2017年6月30日
weipeng3333  LV2 2017年6月6日
最近浏览更多
zhaoyangwfd  LV17 2022年6月22日
1581331993 2020年11月4日
暂无贡献等级
昵称好烦  LV3 2020年5月25日
Shirley3 2020年4月26日
暂无贡献等级
wangzile1994  LV12 2020年3月30日
3268312007 2019年10月8日
暂无贡献等级
258055866  LV12 2019年5月19日
1206207437  LV8 2019年4月25日
rose20072011  LV3 2019年2月26日
不良人  LV6 2018年10月31日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友