首页>代码>Spring MVC+MyBatis+jstl整合开发java CMS内容发布系统easycms开源系统>/EasyCMS-master/src/com/easycms/base/AbstractBaseDao.java
package com.easycms.base; import java.io.Serializable; import java.util.List; import java.util.Map; import javax.annotation.Resource; import com.easycms.dao.Idao; import com.easycms.common.GetEntityClassUtil; import com.easycms.common.Pager; public abstract class AbstractBaseDao<T,PK extends Serializable> implements BaseDao<T,PK>{ Class entityClass = GetEntityClassUtil.getEntityClass(getClass()); @Resource private Idao<T, Serializable> idao; @Override public void save(T entity) { idao.save(entity); } @Override public void delete(PK pk) { idao.delete(entityClass,pk); } @Override public void deleteIn(List<String> list) { idao.deleteIn(entityClass, list); } @Override public void update(T entity) { idao.update(entity); } @Override public T findById(PK pk) { return idao.findById(entityClass, pk); } @Override public List<T> findAll() { return idao.findAll(entityClass); } @Override public Pager<T> findByPage(int showPages, int pageSize) { return idao.findByPage(entityClass, showPages, pageSize); } public Pager<T> findByKey(Map<String, Object> maps,String operate){ return idao.findByKey(entityClass, maps, operate); } public T findByParam(Map<String, Object> maps,String operate) { return idao.findByParam(entityClass, maps, operate); } public int isExist(Map<String, Object> maps,String operate){ return idao.isExist(entityClass, maps, operate); } public Pager<T> findByPage(int showPages, int pageSize,Object key){ return idao.findByPage(entityClass, showPages, pageSize, key); } public void updateOrder(T entity){ idao.updateOrder(entity); } public T login(T entity) { return idao.login(entity); } }
最近下载更多
wanglinddad LV54
2022年4月22日
桥道麻豆 LV2
2021年3月9日
oushao LV10
2020年10月13日
wzzhou LV6
2020年8月24日
wsk588 LV26
2020年6月20日
sddyzm LV7
2020年4月28日
lyucjiayou LV8
2019年12月27日
hjn123123 LV8
2019年11月25日
nmnky123 LV5
2019年11月11日
buptdxc LV6
2019年10月24日
最近浏览更多
locklock LV2
2023年12月22日
草帽小小鸡 LV7
2023年11月27日
krhtest
2023年10月15日
暂无贡献等级
a970712258 LV3
2023年8月8日
hesu2020 LV1
2023年5月4日
箜canasd LV5
2023年4月3日
林Liam LV1
2023年3月24日
微信网友_5975606834761728 LV3
2023年3月21日
wang398931303 LV4
2023年3月11日
微信网友_5992582549164032 LV6
2023年3月7日