public class ResultSet extends RecordList implements com.smartgwt.mobile.client.internal.data.CanGetCachedRow<Record>, com.smartgwt.mobile.client.internal.data.events.DSDataChangedHandler, com.smartgwt.mobile.client.internal.data.HasCriteria, HasDataArrivedHandlers, com.smartgwt.mobile.client.internal.HasReferenceCount, com.smartgwt.mobile.client.internal.data.HasSortSpecifiers
_dataChangeFlag| Constructor and Description |
|---|
ResultSet(DataSource ds) |
ResultSet(DataSource ds,
java.util.List<? extends Record> initialData) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_addCacheData(Record[] newRows,
DSRequest _) |
void |
_addRef() |
protected void |
_dataSourceDataChanged(DSRequest dsRequest,
DSResponse dsResponse) |
void |
_filter() |
Record |
_getCachedRow(int rowNum) |
boolean |
_getUseClientSorting() |
protected void |
_handleUpdate(DSOperationType operationType,
Record[] updateData,
boolean forceCacheInvalidation,
DSRequest dsRequest) |
void |
_onDSDataChanged(com.smartgwt.mobile.client.internal.data.events.DSDataChangedEvent event) |
protected boolean |
_removeCacheData(Record[] updateData,
DSRequest _) |
void |
_setContext(DSRequest context) |
protected boolean |
_shouldUpdatePartialCache() |
ResultSet |
_sortByProperty(java.lang.String property,
boolean up,
java.util.Comparator<java.lang.Object> comparator)
Sort the RecordList in-place, according to the value of the supplied property on each
Record, using the supplied comparator
|
void |
_unref() |
protected void |
_updateCache(DSOperationType operationType,
Record[] updateData,
DSRequest dsRequest) |
protected boolean |
_updateCacheData(Record[] updateData,
DSRequest dsRequest) |
com.google.gwt.event.shared.HandlerRegistration |
addDataArrivedHandler(DataArrivedHandler handler) |
boolean |
allMatchingRowsCached() |
boolean |
allRowsCached() |
protected int |
compareCriteria(Criteria newCriteria,
Criteria oldCriteria) |
void |
dataArrived(int startRow,
int endRow) |
Record |
get(int pos) |
Criteria |
getCriteria() |
DataSource |
getDataSource() |
FetchMode |
getFetchMode() |
Record[] |
getRange(int start,
int end)
Returns a Record array made up of the Records in this list inside the range denoted by
the start and end parameters (non-inclusive at the end).
|
RecordList |
getRangeList(int start,
int end) |
SortSpecifier[] |
getSort() |
TextMatchStyle |
getTextMatchStyle() |
java.lang.Boolean |
getUseClientSorting() |
protected void |
insertIntoCache(Record record) |
protected void |
insertIntoCache(Record record,
int existingPosition) |
void |
invalidateCache() |
boolean |
lengthIsKnown() |
boolean |
rangeIsLoaded(int startRow,
int endRow) |
boolean |
rowIsLoaded(int rowNum) |
void |
setAllCached() |
void |
setCriteria(Criteria newCriteria) |
void |
setDataSource(DataSource dataSource) |
void |
setFetchMode(FetchMode fetchMode) |
void |
setSort(SortSpecifier... sortSpecifiers) |
void |
setTextMatchStyle(TextMatchStyle textMatchStyle) |
void |
setUseClientFiltering(boolean useClientFiltering) |
void |
setUseClientSorting(boolean useClientSorting) |
ResultSet |
sortByProperty(java.lang.String property) |
ResultSet |
sortByProperty(java.lang.String property,
boolean up)
Sort the RecordList in-place, according to the value of the supplied property on each
Record, using the default comparator
|
_createHandlerManager, _doneChangingData, _ensureHandlers, _getDefaultComparator, _maybeFireDataChangedEvent, _sortByProperties, _sortByProperties, _startChangingData, add, add, addAll, addAll, addDataChangedHandler, clear, find, find, find, find, find, find, findIndex, findIndex, findIndex, findIndex, findIndex, findIndex, fireEvent, remove, remove, removeAll, removeRange, retainAll, set, subList, swapclone, contains, ensureCapacity, forEach, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, size, sort, spliterator, toArray, toArray, trimToSizepublic ResultSet(DataSource ds)
public ResultSet(DataSource ds, java.util.List<? extends Record> initialData)
@SGWTInternal public void _addRef()
_addRef in interface com.smartgwt.mobile.client.internal.HasReferenceCount@SGWTInternal public void _unref()
_unref in interface com.smartgwt.mobile.client.internal.HasReferenceCountpublic DataSource getDataSource()
public void setDataSource(DataSource dataSource)
public void setAllCached()
@SGWTInternal public void _setContext(DSRequest context)
public final Criteria getCriteria()
getCriteria in interface com.smartgwt.mobile.client.internal.data.HasCriteriapublic void setCriteria(Criteria newCriteria)
setCriteria in interface com.smartgwt.mobile.client.internal.data.HasCriteria@SGWTInternal public void _filter()
public void invalidateCache()
public boolean lengthIsKnown()
public boolean allRowsCached()
public final boolean allMatchingRowsCached()
public FetchMode getFetchMode()
public void setFetchMode(FetchMode fetchMode)
public TextMatchStyle getTextMatchStyle()
public void setTextMatchStyle(TextMatchStyle textMatchStyle)
public Record get(int pos)
public Record[] getRange(int start, int end)
RecordListgetRange in class RecordListstart - First Record to include in the subsetend - Include every Record up to (but not including) this onepublic RecordList getRangeList(int start, int end)
public boolean rowIsLoaded(int rowNum)
@SGWTInternal public Record _getCachedRow(int rowNum)
_getCachedRow in interface com.smartgwt.mobile.client.internal.data.CanGetCachedRow<Record>public boolean rangeIsLoaded(int startRow,
int endRow)
public void dataArrived(int startRow,
int endRow)
public ResultSet sortByProperty(java.lang.String property)
public ResultSet sortByProperty(java.lang.String property, boolean up)
RecordListsortByProperty in class RecordListproperty - The name of the property to sort byup - If true, sort in ascending order; otherwise in descending orderpublic ResultSet _sortByProperty(java.lang.String property, boolean up, java.util.Comparator<java.lang.Object> comparator)
RecordList_sortByProperty in class RecordListproperty - The name of the property to sort byup - If true, sort in ascending order; otherwise in descending ordercomparator - A Comparator that is able to provide meaningful comparisons between
two values of the property being sorted bypublic final SortSpecifier[] getSort()
getSort in interface com.smartgwt.mobile.client.internal.data.HasSortSpecifierspublic void setSort(SortSpecifier... sortSpecifiers)
setSort in interface com.smartgwt.mobile.client.internal.data.HasSortSpecifierspublic final java.lang.Boolean getUseClientSorting()
@SGWTInternal public final boolean _getUseClientSorting()
public void setUseClientSorting(boolean useClientSorting)
public void setUseClientFiltering(boolean useClientFiltering)
public com.google.gwt.event.shared.HandlerRegistration addDataArrivedHandler(DataArrivedHandler handler)
addDataArrivedHandler in interface HasDataArrivedHandlers@SGWTInternal protected void _dataSourceDataChanged(DSRequest dsRequest, DSResponse dsResponse)
@SGWTInternal protected boolean _shouldUpdatePartialCache()
@SGWTInternal protected void _handleUpdate(DSOperationType operationType, Record[] updateData, boolean forceCacheInvalidation, DSRequest dsRequest)
@SGWTInternal protected void _updateCache(DSOperationType operationType, Record[] updateData, DSRequest dsRequest)
public void _onDSDataChanged(com.smartgwt.mobile.client.internal.data.events.DSDataChangedEvent event)
_onDSDataChanged in interface com.smartgwt.mobile.client.internal.data.events.DSDataChangedHandler@SGWTInternal protected boolean _updateCacheData(Record[] updateData, DSRequest dsRequest)
protected void insertIntoCache(Record record)
protected void insertIntoCache(Record record, int existingPosition)