Modifier and Type | Method and Description |
---|---|
GqlQuery.Builder<V> |
addBinding(Blob... value)
Sets a new positional binding.
|
GqlQuery.Builder<V> |
addBinding(boolean... value)
Sets a new positional binding.
|
GqlQuery.Builder<V> |
addBinding(Cursor cursor)
Sets a new positional binding.
|
GqlQuery.Builder<V> |
addBinding(double... value)
Sets a new positional binding.
|
GqlQuery.Builder<V> |
addBinding(FullEntity<?>... value)
Deprecated.
|
GqlQuery.Builder<V> |
addBinding(Key... value)
Sets a new positional binding.
|
GqlQuery.Builder<V> |
addBinding(long... value)
Sets a new positional binding.
|
GqlQuery.Builder<V> |
addBinding(String... value)
Sets a new positional binding.
|
GqlQuery.Builder<V> |
addBinding(Timestamp... value)
Sets a new positional binding.
|
GqlQuery<V> |
build() |
GqlQuery.Builder<V> |
clearBindings() |
GqlQuery.Builder<V> |
setAllowLiteral(boolean allowLiteral)
Sets whether the query string can contain literals.
|
GqlQuery.Builder<V> |
setBinding(String name,
Blob... value)
Sets a new named binding.
|
GqlQuery.Builder<V> |
setBinding(String name,
boolean... value)
Sets a new named binding.
|
GqlQuery.Builder<V> |
setBinding(String name,
Cursor cursor)
Sets a new named binding.
|
GqlQuery.Builder<V> |
setBinding(String name,
double... value)
Sets a new named binding.
|
GqlQuery.Builder<V> |
setBinding(String name,
FullEntity<?>... value)
Deprecated.
|
GqlQuery.Builder<V> |
setBinding(String name,
Key... value)
Sets a new named binding.
|
GqlQuery.Builder<V> |
setBinding(String name,
long... value)
Sets a new named binding.
|
GqlQuery.Builder<V> |
setBinding(String name,
String... value)
Sets a new named binding.
|
GqlQuery.Builder<V> |
setBinding(String name,
Timestamp... value)
Sets a new named binding.
|
GqlQuery.Builder<V> |
setNamespace(String namespace)
Sets the namespace for the GQL query.
|
GqlQuery.Builder<V> |
setQuery(String query)
Sets the GQL query.
|
public GqlQuery.Builder<V> setQuery(String query)
public GqlQuery.Builder<V> setNamespace(String namespace)
public GqlQuery.Builder<V> setAllowLiteral(boolean allowLiteral)
false
, the query string must
not contain any literals and instead must bind all values.public GqlQuery.Builder<V> clearBindings()
public GqlQuery.Builder<V> setBinding(String name, Cursor cursor)
name
- name of the bindingcursor
- a Cursor
object that binds to a given namepublic GqlQuery.Builder<V> setBinding(String name, String... value)
name
- name of the bindingvalue
- a String object or a list of String objects that binds to a given namepublic GqlQuery.Builder<V> setBinding(String name, long... value)
name
- name of the bindingvalue
- a long value or a list of long values that binds to a given namepublic GqlQuery.Builder<V> setBinding(String name, double... value)
name
- name of the bindingvalue
- a double value or a list of double values that binds to a given namepublic GqlQuery.Builder<V> setBinding(String name, boolean... value)
name
- name of the bindingvalue
- a boolean value or a list of boolean values that binds to a given namepublic GqlQuery.Builder<V> setBinding(String name, Timestamp... value)
public GqlQuery.Builder<V> setBinding(String name, Key... value)
@Deprecated public GqlQuery.Builder<V> setBinding(String name, FullEntity<?>... value)
name
- name of the bindingvalue
- a FullEntity
object or a list of FullEntity
objects that binds
to a given namepublic GqlQuery.Builder<V> setBinding(String name, Blob... value)
public GqlQuery.Builder<V> addBinding(Cursor cursor)
cursor
- a Cursor
object to be set as a new positional bindingpublic GqlQuery.Builder<V> addBinding(String... value)
value
- a String object or a list of String objects to be set as a new positional
bindingpublic GqlQuery.Builder<V> addBinding(long... value)
value
- a long value or a list of long values to be set as a new positional bindingpublic GqlQuery.Builder<V> addBinding(double... value)
value
- a double value or a list of double values to be set as a new positional bindingpublic GqlQuery.Builder<V> addBinding(boolean... value)
value
- a boolean value or a list of boolean values to be set as a new positional
bindingpublic GqlQuery.Builder<V> addBinding(Timestamp... value)
public GqlQuery.Builder<V> addBinding(Key... value)
@Deprecated public GqlQuery.Builder<V> addBinding(FullEntity<?>... value)
value
- a FullEntity
object or a list of FullEntity
objects to be set as
a new positional bindingpublic GqlQuery.Builder<V> addBinding(Blob... value)
Copyright © 2019 Google LLC. All rights reserved.