IBaseDAO.java
资源名称:cindyblog.rar [点击查看]
上传用户:cdpainuo
上传日期:2022-07-12
资源大小:5257k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.appspot.cindyblog.dao;
- import java.util.List;
- import javax.persistence.EntityManager;
- import com.appspot.cindyblog.pojo.BaseBean;
- public interface IBaseDAO{
- public <T extends BaseBean> T getObjectById(Class<T> clazz,Long id,EntityManager em);
- public <T extends BaseBean> boolean addObject(T o,EntityManager em);
- public <T extends BaseBean> boolean deleteObject(Class<T> clazz,Long id,EntityManager em);
- public <T extends BaseBean> int getObjectCount(Class<T> clazz,EntityManager em);
- public <T extends BaseBean> List<T> getObjectList(Class<T> clazz,EntityManager em,String orderBy,int start,int limit);
- public <T extends BaseBean> List<T> getObjectList(Class<T> clazz,EntityManager em);
- }