|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.uep.bobclient.data.MobileApplicationDataHandler
com.sybase.uep.bobclient.data.MobileApplicationDataPagingHandler
public class MobileApplicationDataPagingHandler
The MobileApplicationDataPagingHandler
extends the base MobileApplicationDataHandler
in a way
that it offers extra handling over the result collections.
The paging handler is instantiated and set to the MobileDataControl
from the generated client. It should have
the necessary paging parameters defined by user. The handler caches the pages of records according to the paging
buffer limit attribute and execute the query upon request.
PagingObject
Field Summary |
---|
Fields inherited from class com.sybase.uep.bobclient.data.MobileApplicationDataHandler |
---|
_application, _appLogger, _dynamicNamedQuery, _isSearch, _namedQuery, _namedQueryParameters, _namedQuerySubmitElements, _parentApplication, _parentAssociationName, _parentSelectedRow, _query, _rows, _size, FIND_ALL |
Constructor Summary | |
---|---|
MobileApplicationDataPagingHandler(PagingObject pagingObj)
|
Method Summary | |
---|---|
void |
clearAllPagingRows()
Clear out all buffered paging row collections |
void |
clearCachedRows()
Clears the cached rows in the handler |
java.lang.Object |
getRow(int rowIndex)
When this method gets called, the paging handler would automatically scrolls the page if the given index exceeds the maximum counts of the cached rows or can not be fetched in the cached pages. |
int |
getSize()
|
void |
setDynamicNamedQuery(java.lang.String namedQuery)
Set the dynamic named query name |
void |
setMobileApplication(MBOModel application)
Sets the motile application to the data handler, calling this method would clear the cached rows if necessary |
void |
setNamedQuery(java.lang.String namedQuery)
Set the named query name |
void |
setRelationshipData(MBOModel parentApplication,
java.lang.Object parentSelectedRow,
java.lang.String associationName)
Sets the relationship data to the handler, including parent MBO,parent selected row and association name |
Methods inherited from class com.sybase.uep.bobclient.data.MobileApplicationDataHandler |
---|
getApplicationData, getDynamicNamedQuery, getDynamicNamedQueryParameters, getNamedQuery, getNamedQueryParameters, getNamedQuerySubmitElements, getQuery, getRows, isFetchingThroughRelationship, setDynamicNamedQueryParameters, setNamedQueryParameters, setNamedQuerySubmitElements, setQuery, setSearch |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MobileApplicationDataPagingHandler(PagingObject pagingObj)
Method Detail |
---|
public java.lang.Object getRow(int rowIndex)
getRow
in interface IMobileApplicationDataHandler
getRow
in class MobileApplicationDataHandler
rowIndex
-
public int getSize()
getSize
in interface IMobileApplicationDataHandler
getSize
in class MobileApplicationDataHandler
public void clearAllPagingRows()
public void setDynamicNamedQuery(java.lang.String namedQuery)
IMobileApplicationDataHandler
setDynamicNamedQuery
in interface IMobileApplicationDataHandler
setDynamicNamedQuery
in class MobileApplicationDataHandler
namedQuery
- String
value for the dynamic named querypublic void setNamedQuery(java.lang.String namedQuery)
IMobileApplicationDataHandler
setNamedQuery
in interface IMobileApplicationDataHandler
setNamedQuery
in class MobileApplicationDataHandler
namedQuery
- String
value for the named querypublic void setMobileApplication(MBOModel application)
IMobileApplicationDataHandler
setMobileApplication
in interface IMobileApplicationDataHandler
setMobileApplication
in class MobileApplicationDataHandler
public void setRelationshipData(MBOModel parentApplication, java.lang.Object parentSelectedRow, java.lang.String associationName)
IMobileApplicationDataHandler
setRelationshipData
in interface IMobileApplicationDataHandler
setRelationshipData
in class MobileApplicationDataHandler
public void clearCachedRows()
IMobileApplicationDataHandler
clearCachedRows
in interface IMobileApplicationDataHandler
clearCachedRows
in class MobileApplicationDataHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |