|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.gadgets.client.osapi.OsapiRequestBuilder<T>
com.google.gwt.gadgets.client.osapi.CollectionRequestBuilder<T>
T - Specific request builder implementation.public abstract class CollectionRequestBuilder<T extends CollectionRequestBuilder<?>>
A superclass for all request builders building requests returning collections of objects.
| Constructor Summary | |
|---|---|
protected |
CollectionRequestBuilder()
Required by JavaScriptObject policy. |
| Method Summary | |
|---|---|
T |
setContainsFilter(java.lang.String field,
java.lang.String value)
Indicates to return elements where value appears somewhere in
the element's field value. |
T |
setCount(int count)
Sets the page size for a paged collection. |
T |
setEqualsFilter(java.lang.String field,
java.lang.String value)
Indicates to return elements where value exactly matches the
element's field value. |
T |
setPresentFilter(java.lang.String field)
Indicates to return elements where the element's field value
is not null or empty. |
T |
setSorting(java.lang.String field,
SortOrder order)
Indicates to sort return elements by the element's field value
and given order. |
T |
setStartIndex(int startIndex)
Sets start index for a paged collection. |
T |
setStartsWithFilter(java.lang.String field,
java.lang.String value)
Indicates to return elements where value is an exact prefix of
the element's field value. |
| Methods inherited from class com.google.gwt.gadgets.client.osapi.OsapiRequestBuilder |
|---|
nativeSet, nativeSet, setGroupId, setUpdatedSince, setUserId |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected CollectionRequestBuilder()
JavaScriptObject policy.
| Method Detail |
|---|
public final T setContainsFilter(java.lang.String field,
java.lang.String value)
value appears somewhere in
the element's field value. Note that only one filter can be
set on request and previously set filters (of any type) are canceled with
invocation of this method.
field - Identifier of the field to use for filtering.value - Value to use for filtering.public final T setCount(int count)
count - The page size for a paged collection.
public final T setEqualsFilter(java.lang.String field,
java.lang.String value)
value exactly matches the
element's field value. Note that only one filter can be set on
request and previously set filters (of any type) are canceled with
invocation of this method.
field - Identifier of the field to use for filtering.value - Value to use for filtering.public final T setPresentFilter(java.lang.String field)
field value
is not null or empty. Note that only one filter can be set on request and
previously set filters (of any type) are canceled with invocation of this
method.
field - Identifier of the field to use for filtering.
public final T setSorting(java.lang.String field,
SortOrder order)
field value
and given order.
field - Identifier of the field to use for sorting.order - The order to use for sorting.public final T setStartIndex(int startIndex)
startIndex - Start index for a paged collection.
public final T setStartsWithFilter(java.lang.String field,
java.lang.String value)
value is an exact prefix of
the element's field value. Note that only one filter can be
set on request and previously set filters (of any type) are canceled with
invocation of this method.
field - Identifier of the field to use for filtering.value - Value to use for filtering.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||