|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.io.PagedRowSet
public class PagedRowSet
A wrapper for a RowSet to make it pageable. This technique is recommended if the RowSet is 'too big' to download all at once, AND the developer's client-side code is capable of dealing with non-fully-populated recordsets, that is, ActionScript RecordSets which are missing some of their data.
| Field Summary | |
|---|---|
static String |
DEFAULT_PAGING_SERVICE_NAME
Pageable Rowset Service Name. |
| Fields inherited from interface flex.messaging.io.PageableRowSet |
|---|
CURSOR, PAGE |
| Constructor Summary | |
|---|---|
PagedRowSet(RowSet r,
int p)
Constructor |
|
PagedRowSet(RowSet r,
int p,
boolean createID)
Allows the unique id generation of the RowSet to be toggled. |
|
| Method Summary | |
|---|---|
String[] |
getColumnNames()
List the column names of the result set. |
String |
getID()
|
int |
getInitialDownloadCount()
If this function returns a number >= the total number of rows in the result set, then the result set should be simply returned to the client in full. |
Map |
getRecords(int startIndex,
int count)
Use this method to get a map of the index used to start the data page, and an array of arrays of the actual data page itself. |
int |
getRowCount()
|
String |
getServiceName()
|
void |
setServicename(String serviceName)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_PAGING_SERVICE_NAME
| Constructor Detail |
|---|
public PagedRowSet(RowSet r,
int p)
Creates a UUID for this object. Format: `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
r - The RowSet to be paged.p - The initial page size.
public PagedRowSet(RowSet r,
int p,
boolean createID)
PagedRowSet.PagedRowSet(RowSet, int)| Method Detail |
|---|
public String[] getColumnNames()
throws SQLException
getColumnNames in interface PageableRowSetSQLException
public Map getRecords(int startIndex,
int count)
throws SQLException
getRecords in interface PageableRowSetSQLExceptionpublic int getRowCount()
getRowCount in interface PageableRowSetpublic int getInitialDownloadCount()
getInitialDownloadCount in interface PageableRowSetpublic String getID()
getID in interface PageableRowSetpublic String getServiceName()
getServiceName in interface PageableRowSetpublic void setServicename(String serviceName)
setServicename in interface PageableRowSetserviceName - Update the name of the service that manages the pages for this query.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/io/PagedRowSet.html