com.scooterframework.orm.misc
Class DataPageListSourceImpl

java.lang.Object
  extended by com.scooterframework.orm.misc.PageListSource
      extended by com.scooterframework.orm.misc.DataPageListSourceImpl

public class DataPageListSourceImpl
extends PageListSource

DataPageListSourceImpl class retrieves paged record list from an existing data list.


Field Summary
 
Fields inherited from class com.scooterframework.orm.misc.PageListSource
inputOptions, limit, log, offset, recordList, recount, totalCount
 
Constructor Summary
DataPageListSourceImpl(java.util.List<java.lang.Object> dataList)
          Constructs a PageListSource object.
DataPageListSourceImpl(java.util.List<java.lang.Object> dataList, java.util.Map<java.lang.String,java.lang.String> inputOptions)
          Constructs a PageListSource object.
DataPageListSourceImpl(java.util.List<java.lang.Object> dataList, java.util.Map<java.lang.String,java.lang.String> inputOptions, boolean recount)
          Constructs a PageListSource object.
 
Method Summary
protected  int countTotalRecords()
          Counts total number of records.
protected  java.util.List<java.lang.Object> retrieveList()
          Retrieves list of records.
 
Methods inherited from class com.scooterframework.orm.misc.PageListSource
checkOffset, execute, getLimitX, getOffset, getRecordList, getTotalCount, setInputs, setLimit, setOffset, setRecount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPageListSourceImpl

public DataPageListSourceImpl(java.util.List<java.lang.Object> dataList)
Constructs a PageListSource object.

Parameters:
dataList - a list of data.

DataPageListSourceImpl

public DataPageListSourceImpl(java.util.List<java.lang.Object> dataList,
                              java.util.Map<java.lang.String,java.lang.String> inputOptions)
Constructs a PageListSource object.

Parameters:
dataList - a list of data to be paginated.
inputOptions - Map of control information.

DataPageListSourceImpl

public DataPageListSourceImpl(java.util.List<java.lang.Object> dataList,
                              java.util.Map<java.lang.String,java.lang.String> inputOptions,
                              boolean recount)
Constructs a PageListSource object.

Parameters:
dataList - a list of data to be paginated.
inputOptions - Map of control information.
recount - true if recount of total records is allowed; false otherwise.
Method Detail

countTotalRecords

protected int countTotalRecords()
Description copied from class: PageListSource
Counts total number of records. May not be invoked if recounted is false.

Specified by:
countTotalRecords in class PageListSource
Returns:
total number of records

retrieveList

protected java.util.List<java.lang.Object> retrieveList()
Description copied from class: PageListSource
Retrieves list of records.

Specified by:
retrieveList in class PageListSource
Returns:
list of records