ibasicdao.java

来自「struts+spring+hibernate自创框架」· Java 代码 · 共 58 行

JAVA
58
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?