📄 pagehandle.java
字号:
package com.cucu.tapestry.dao;
import java.util.List;
import net.sf.hibernate.type.Type;
import org.springframework.dao.DataAccessException;
/**
* Hibernate分页接口
*
* @author 绝情酷哥
* @version 1.0
*/
public interface PageHandle {
/**
* @param hql
* @param pos
* @param size
* @return List
* @throws DataAccessException
*/
public List getPageItems(final String hql, final int pos, final int size)
throws DataAccessException;
/**
* @param hql
* @param obj
* @param type
* @param pos
* @param size
* @return List
* @throws DataAccessException
*/
public List getPageItems(
final String hql,
final Object obj,
final Type type,
final int pos,
final int size)
throws DataAccessException;
/**
* @param hql
* @param objs
* @param types
* @param size
* @return List
* @throws DataAccessException
*/
public List getPageItems(
final String hql,
final Object[] objs,
final Type[] types,
final int pos,
final int size)
throws DataAccessException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -