📄 ibasicdao.java
字号:
/*
* JCatalog Project
*/
package com.pegasus.framework.dao;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import com.pegasus.framework.component.taglib.html.pager.PageAgent;
import com.pegasus.framework.exception.DAOException;
import com.pegasus.framework.pojo.IBusinessObject;
/**
* The user DAO interface.
* <p>
* This class contains user management related data access logic.
*
* @author tommy.chong
*/
public interface IBasicDAO {
String getTableName();
IBusinessObject selectOne(Serializable id) throws DAOException;
IBusinessObject selectOneByOtherPK(String pk, String value) throws DAOException;
List select() throws DAOException;
Serializable insert(IBusinessObject o) throws DAOException;
void update(IBusinessObject o) throws DAOException;
void merge(IBusinessObject o) throws DAOException;
void insertOrUpdate(IBusinessObject o) throws DAOException;
void delete(IBusinessObject o) throws DAOException;
void delete(Serializable id) throws DAOException;
List select(List criterionList, List orderList, PageAgent pageAgent) throws DAOException;
List select(Criterion[] criterionArray, Order[] orderArray) throws DAOException;
List select(Criterion[] criterionArray, Order[] orderArray, PageAgent pageAgent) throws DAOException;
List selectByHQL(String hql, Collection criteria, PageAgent pageAgent) throws DAOException;
List selectByHQL(String hql, Collection criteria) throws DAOException;
List selectByNativeSQL(String sql, Map classMap, Collection criteria, PageAgent pageAgent) throws DAOException;
Object selectOneByHQL(String hql, Collection criteria) throws DAOException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -