pagehandle.java
来自「tapestry4.0应用,特别适用于初学者」· Java 代码 · 共 60 行
JAVA
60 行
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 + =
减小字号Ctrl + -
显示快捷键?