|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.io.StoreRegion
public final class StoreRegion
A zone of data within a StoreProvider. Useful for either requesting
a block of data, or for declaring a subscription. The StoreProvider will
first apply the query and the
sort criteria and then
restrict the data according to the getStart() and getCount().
The latter 2 denote the viewed region.
TODO: Support setter injection, remove the setters, make fields final
| Constructor Summary | |
|---|---|
StoreRegion()
Create a StoreRegion that uses the default values of start=0, count=-1 (i.e. |
|
StoreRegion(int start,
int count,
java.util.List<SortCriterion> sort,
java.util.Map<java.lang.String,java.lang.String> query,
QueryOptions queryOptions)
Create a StoreRegion with non default values |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getCount()
Accessor for the length of the region of interest to the viewer. |
java.util.Map<java.lang.String,java.lang.String> |
getQuery()
Accessor for the filter criteria to be used before the range is extracted. |
QueryOptions |
getQueryOptions()
Partially supported by DWR (ignoreCase attribute only). |
java.util.List<SortCriterion> |
getSort()
Accessor for the sort criteria to be used before the range is extracted. |
int |
getStart()
Accessor for the start of the range of interest. |
int |
hashCode()
|
void |
setQuery(java.util.Map<java.lang.String,java.lang.String> query)
Deprecated. For DWR internal use only. Use constructor injection |
void |
setQueryOptions(QueryOptions queryOptions)
Deprecated. For DWR internal use only. Use constructor injection |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StoreRegion()
public StoreRegion(int start,
int count,
java.util.List<SortCriterion> sort,
java.util.Map<java.lang.String,java.lang.String> query,
QueryOptions queryOptions)
start - The start of the range of interestcount - The length of the region of interest to the viewersort - The sort criteria to be used before the range is extractedquery - The filter criteria to be used before the range is extracted| Method Detail |
|---|
public int getStart()
public int getCount()
public java.util.List<SortCriterion> getSort()
null as a sort criteria means 'no sorting'. Sort
criteria can be expensive to server resources, so using no sorting could
be much faster. StoreProviders must define a default sort order
public java.util.Map<java.lang.String,java.lang.String> getQuery()
@Deprecated public void setQuery(java.util.Map<java.lang.String,java.lang.String> query)
public QueryOptions getQueryOptions()
@Deprecated public void setQueryOptions(QueryOptions queryOptions)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||