Android APIs
public static final class

Query.Builder

extends Object
java.lang.Object
   ↳ com.google.android.gms.cloudsave.Query.Builder

Class Overview

Builder class for building CloudSave query objects.

Summary

Public Constructors
Query.Builder()
Public Methods
Query build()
Builds a Query object.
Query.Builder setKeys(Collection<Entity.Key> keys)
A collection of Entity.Keys for Entitys to fetched.
Query.Builder setKind(String kind)
If set, the query returns all Entity objects that belong to the same Kind.
Query.Builder setProperty(String name, Double value)
If set, the query returns all Entity objects that contain a property with given name and value.
Query.Builder setProperty(String name, Boolean value)
If set, the query returns all Entity objects that contain a property with given name and value.
Query.Builder setProperty(String name, String value)
If set, the query returns all Entity objects that contain a property with given name and value.
Query.Builder setProperty(String name, Long value)
If set, the query returns all Entity objects that contain a property with given name and value.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Query.Builder ()

Public Methods

public Query build ()

Builds a Query object.

public Query.Builder setKeys (Collection<Entity.Key> keys)

A collection of Entity.Keys for Entitys to fetched. If this is set, rest of the query criteria are ignored.

public Query.Builder setKind (String kind)

If set, the query returns all Entity objects that belong to the same Kind.

public Query.Builder setProperty (String name, Double value)

If set, the query returns all Entity objects that contain a property with given name and value.

Parameters
name of the property belonging to a Entity
value of the property belonging to above name.

public Query.Builder setProperty (String name, Boolean value)

If set, the query returns all Entity objects that contain a property with given name and value.

Parameters
name of the property belonging to a Entity
value of the property belonging to above name.

public Query.Builder setProperty (String name, String value)

If set, the query returns all Entity objects that contain a property with given name and value.

Parameters
name of the property belonging to a Entity
value of the property belonging to above name.

public Query.Builder setProperty (String name, Long value)

If set, the query returns all Entity objects that contain a property with given name and value.

Parameters
name of the property belonging to a Entity
value of the property belonging to above name.