com.easyjf.web.tools
Class PageList

java.lang.Object
  extended bycom.easyjf.web.tools.PageList
All Implemented Interfaces:
IPageList
Direct Known Subclasses:
DbPageList

public class PageList
extends java.lang.Object
implements IPageList

实现通过调用IQuery实现分页处理

Author:
蔡世友

Constructor Summary
PageList()
           
PageList(IQuery q)
           
 
Method Summary
 void doList(int pageSize, int pageNo, java.lang.String totalSQL, java.lang.String queryHQL)
           
 void doList(int pageSize, int pageNo, java.lang.String totalSQL, java.lang.String queryHQL, java.util.Collection paraValues)
           
 int getCurrentPage()
           
 int getPages()
           
 java.util.List getResult()
           
 int getRowCount()
           
 void setQuery(IQuery q)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageList

public PageList()

PageList

public PageList(IQuery q)
Method Detail

setQuery

public void setQuery(IQuery q)
Specified by:
setQuery in interface IPageList

getResult

public java.util.List getResult()
Specified by:
getResult in interface IPageList

doList

public void doList(int pageSize,
                   int pageNo,
                   java.lang.String totalSQL,
                   java.lang.String queryHQL)
Specified by:
doList in interface IPageList

doList

public void doList(int pageSize,
                   int pageNo,
                   java.lang.String totalSQL,
                   java.lang.String queryHQL,
                   java.util.Collection paraValues)
Specified by:
doList in interface IPageList

getPages

public int getPages()
Specified by:
getPages in interface IPageList

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface IPageList

getCurrentPage

public int getCurrentPage()
Specified by:
getCurrentPage in interface IPageList