📄 basedao.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -