|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stackmob.sdk.model.StackMobModelQuery<T>
public class StackMobModelQuery<T extends StackMobModel>
| Constructor Summary | |
|---|---|
StackMobModelQuery(Class<T> classOfT)
|
|
| Method Summary | |
|---|---|
void |
count(StackMobCountCallback callback)
|
StackMobModelQuery<T> |
expandDepthIs(Integer i)
set the expand depth of this query. |
StackMobModelQuery<T> |
field(StackMobField fieldObj)
|
StackMobModelQuery<T> |
fieldIsEqualTo(String field,
String val)
add an "=" to your query. |
StackMobModelQuery<T> |
fieldIsGreaterThan(String field,
String val)
same as fieldIsLessThan(String, String), except applies ">" instead of "<" |
StackMobModelQuery<T> |
fieldIsGreaterThanOrEqualTo(String field,
String val)
same as fieldIsLessThan(String, String), except applies ">=" instead of "<" |
StackMobModelQuery<T> |
fieldIsIn(String field,
List<String> values)
add an "IN" to your query. |
StackMobModelQuery<T> |
fieldIsLessThan(String field,
String val)
same as fieldIsLessThan(String, String), except works with Strings |
StackMobModelQuery<T> |
fieldIsLessThanOrEqualTo(String field,
String val)
same as fieldIsLessThan(String, String), except applies "<=" instead of "<" |
StackMobModelQuery<T> |
fieldIsNear(String field,
GeoPoint point)
add a "NEAR" to your query for the given GeoPoint field. |
StackMobModelQuery<T> |
fieldIsNearWithinKm(String field,
GeoPoint point,
Double maxDistanceKm)
add a "NEAR" to your query for the given GeoPoint field. |
StackMobModelQuery<T> |
fieldIsNearWithinMi(String field,
GeoPoint point,
Double maxDistanceMi)
add a "NEAR" to your query for the given GeoPoint field. |
StackMobModelQuery<T> |
fieldIsNotEqual(String field,
String val)
add a "NE" to your query. |
StackMobModelQuery<T> |
fieldIsNotNull(String field)
add a "NULL" to your query. |
StackMobModelQuery<T> |
fieldIsNull(String field)
add a "NULL" to your query. |
StackMobModelQuery<T> |
fieldIsOrderedBy(String field,
StackMobQuery.Ordering ordering)
add an "ORDER BY" to your query |
StackMobModelQuery<T> |
fieldIsWithinBox(String field,
GeoPoint lowerLeft,
GeoPoint upperRight)
add a "WITHIN" to your query for the given GeoPoint field. |
StackMobModelQuery<T> |
fieldIsWithinRadiusInKm(String field,
GeoPoint point,
Double radiusInKm)
add a "WITHIN" to your query for the given GeoPoint field. |
StackMobModelQuery<T> |
fieldIsWithinRadiusInMi(String field,
GeoPoint point,
Double radiusInMi)
add a "WITHIN" to your query for the given GeoPoint field. |
StackMobQuery |
getQuery()
|
StackMobModelQuery<T> |
isInRange(Integer start)
same thing as isInRange(Integer, Integer), except does not specify an end to the range. |
StackMobModelQuery<T> |
isInRange(Integer start,
Integer end)
this method lets you add a "LIMIT" and "SKIP" to your query at once. |
StackMobModelQuery<T> |
select(List<String> fields)
restricts the fields returned in the query |
void |
send(StackMobQueryCallback<T> callback)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackMobModelQuery(Class<T> classOfT)
| Method Detail |
|---|
public StackMobQuery getQuery()
public void send(StackMobQueryCallback<T> callback)
public void count(StackMobCountCallback callback)
public StackMobModelQuery<T> field(StackMobField fieldObj)
public StackMobModelQuery<T> fieldIsNear(String field,
GeoPoint point)
field - the GeoPoint field whose value to testpoint - the lon/lat location to center the search
public StackMobModelQuery<T> fieldIsNearWithinMi(String field,
GeoPoint point,
Double maxDistanceMi)
field - the GeoPoint field whose value to testpoint - the lon/lat location to center the searchmaxDistanceMi - the maximum distance in miles a matched field can be from point.
public StackMobModelQuery<T> fieldIsNearWithinKm(String field,
GeoPoint point,
Double maxDistanceKm)
field - the GeoPoint field whose value to testpoint - the lon/lat location to center the searchmaxDistanceKm - the maximum distance in kilometers a matched field can be from point.
public StackMobModelQuery<T> fieldIsWithinRadiusInMi(String field,
GeoPoint point,
Double radiusInMi)
field - the GeoPoint field whose value to testpoint - the lon/lat location to center the searchradiusInMi - the maximum distance in miles a matched field can be from point.
public StackMobModelQuery<T> fieldIsWithinRadiusInKm(String field,
GeoPoint point,
Double radiusInKm)
field - the GeoPoint field whose value to testpoint - the lon/lat location to center the searchradiusInKm - the maximum distance in kilometers a matched field can be from point.
public StackMobModelQuery<T> fieldIsWithinBox(String field,
GeoPoint lowerLeft,
GeoPoint upperRight)
field - the GeoPoint field whose value to testlowerLeft - the lon/lat location of the lower left corner of the bounding boxupperRight - the lon/lat location of the upper right corner of the bounding box
public StackMobModelQuery<T> fieldIsIn(String field,
List<String> values)
field - the field whose value to testvalues - the values against which to match
public StackMobModelQuery<T> fieldIsNotEqual(String field,
String val)
field - the field whose value to testval - the value against which to match
public StackMobModelQuery<T> fieldIsNull(String field)
field - the field whose value to test
public StackMobModelQuery<T> fieldIsNotNull(String field)
field - the field whose value to test
public StackMobModelQuery<T> fieldIsLessThan(String field,
String val)
fieldIsLessThan(String, String), except works with Strings
field - the field whose value to testval - the value against which to test
public StackMobModelQuery<T> fieldIsLessThanOrEqualTo(String field,
String val)
fieldIsLessThan(String, String), except applies "<=" instead of "<"
field - the field whose value to testval - the value against which to test
public StackMobModelQuery<T> fieldIsGreaterThan(String field,
String val)
fieldIsLessThan(String, String), except applies ">" instead of "<"
field - the field whose value to testval - the value against which to test
public StackMobModelQuery<T> fieldIsGreaterThanOrEqualTo(String field,
String val)
fieldIsLessThan(String, String), except applies ">=" instead of "<"
field - the field whose value to testval - the value against which to test
public StackMobModelQuery<T> fieldIsEqualTo(String field,
String val)
field - the field whose value to testval - the value against which to test
public StackMobModelQuery<T> fieldIsOrderedBy(String field,
StackMobQuery.Ordering ordering)
field - the field to order byordering - the ordering of that field
public StackMobModelQuery<T> expandDepthIs(Integer i)
i - the expand depth. at time of writing, StackMob restricts expand depth to maximum 3
public StackMobModelQuery<T> isInRange(Integer start,
Integer end)
start - the starting object number (inclusive)end - the ending object number (inclusive)
public StackMobModelQuery<T> isInRange(Integer start)
isInRange(Integer, Integer), except does not specify an end to the range.
instead, gets all objects from a starting point (including)
start - the starting object number
public StackMobModelQuery<T> select(List<String> fields)
fields - the fields to return
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||