Class TSqlMapPagedList
TSqlMapPagedList implements a list with paging functionality that retrieves data from a SqlMap statement.
The maximum number of records fetched is 3 times the page size. It fetches the current, the previous and the next page at a time. This allows the paged list to determine if the page is a the begin, the middle or the end of the list.
The paged list does not need to know about the total number of records.
- TComponent
-
TList implements IteratorAggregate, ArrayAccess, Countable
-
TPagedList
-
TSqlMapPagedList
Package: System\Data\SqlMap
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>
Since: 3.1
Located at Data/SqlMap/DataMapper/TSqlMapPagedList.php
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>
Since: 3.1
Located at Data/SqlMap/DataMapper/TSqlMapPagedList.php
public
|
#
__construct(
Create a new SqlMap paged list. |
protected
|
#
initialize(
Initialize the paged list. |
public
|
|
protected
|
#
fetchDataFromStatement( TPageList $sender,
Fetch data by executing the SqlMap statement. |
public
integer|boolean
|
|
public
integer|boolean
|
|
protected
|
#
populateData(
Populate the list with the fetched data. |
protected
array
|
#
getOffsetAndLimit(
Calculate the data fetch offsets and limits. |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
add(),
clear(),
contains(),
copyFrom(),
count(),
getReadOnly(),
insertAfter(),
insertAt(),
insertBefore(),
mergeWith(),
offsetSet(),
offsetUnset(),
remove(),
removeAt(),
setReadOnly()
|
GLOBAL_RAISE_EVENT_LISTENER
|