basedao.java
来自「实现统一的人员日志管理系统管理后台」· Java 代码 · 共 49 行
JAVA
49 行
package com.tb.log.model.dao;
import java.util.List;
import com.tb.log.system.SystemException;
public interface BaseDAO {
/**单表增加
* @param obj
* @throws SystemException
*/
public void save(Object obj) throws SystemException;
/**单表修改
* @param obj
* @throws SystemException
*/
public void update(Object obj) throws SystemException;
/**单表删除
* @param obj
* @throws SystemException
*/
public void remove(Object obj) throws SystemException;
/**通过id查询
* @param id
* @return
* @throws SystemException
*/
public Object findById(String id) throws SystemException;
/**翻页查询,返回列表
* @param currentPage
* @return
* @throws SystemException
*/
public List findAll(int currentPage) throws SystemException;
/**条件查询
* @param consql 查询语句
* @param currentPage 当前页码
* @return
* @throws SystemException 自定义异常
*/
public List findByCondition(String consql,int currentPage) throws SystemException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?