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