Package com.google.cloud.datastore
Class GqlQuery.Builder<V>
java.lang.Object
com.google.cloud.datastore.GqlQuery.Builder<V>
A GQL query builder.
-
Method Summary
Modifier and TypeMethodDescriptionaddBinding
(boolean... value) Sets a new positional binding.addBinding
(double... value) Sets a new positional binding.addBinding
(long... value) Sets a new positional binding.addBinding
(Blob... value) Sets a new positional binding.addBinding
(Cursor cursor) Sets a new positional binding.addBinding
(FullEntity<?>... value) Deprecated.addBinding
(Key... value) Sets a new positional binding.addBinding
(com.google.cloud.Timestamp... value) Sets a new positional binding.addBinding
(String... value) Sets a new positional binding.build()
setAllowLiteral
(boolean allowLiteral) Sets whether the query string can contain literals.setBinding
(String name, boolean... value) Sets a new named binding.setBinding
(String name, double... value) Sets a new named binding.setBinding
(String name, long... value) Sets a new named binding.setBinding
(String name, Blob... value) Sets a new named binding.setBinding
(String name, Cursor cursor) Sets a new named binding.setBinding
(String name, FullEntity<?>... value) Deprecated.setBinding
(String name, Key... value) Sets a new named binding.setBinding
(String name, com.google.cloud.Timestamp... value) Sets a new named binding.setBinding
(String name, String... value) Sets a new named binding.setNamespace
(String namespace) Sets the namespace for the GQL query.setNullBinding
(String name) Sets a new named binding with null value.Sets the GQL query.
-
Method Details
-
setQuery
Sets the GQL query. -
setNamespace
Sets the namespace for the GQL query. -
setAllowLiteral
Sets whether the query string can contain literals. Whenfalse
, the query string must not contain any literals and instead must bind all values. -
clearBindings
-
setBinding
Sets a new named binding.- Parameters:
name
- name of the bindingcursor
- aCursor
object that binds to a given name
-
setBinding
Sets a new named binding.- Parameters:
name
- name of the bindingvalue
- a String object or a list of String objects that binds to a given name
-
setBinding
Sets a new named binding.- Parameters:
name
- name of the bindingvalue
- a long value or a list of long values that binds to a given name
-
setBinding
Sets a new named binding.- Parameters:
name
- name of the bindingvalue
- a double value or a list of double values that binds to a given name
-
setBinding
Sets a new named binding.- Parameters:
name
- name of the bindingvalue
- a boolean value or a list of boolean values that binds to a given name
-
setBinding
Sets a new named binding.- Parameters:
name
- name of the bindingvalue
- aTimestamp
object or a list ofTimestamp
objects that binds to a given name
-
setBinding
Sets a new named binding. -
setBinding
Deprecated.Sets a new named binding.- Parameters:
name
- name of the bindingvalue
- aFullEntity
object or a list ofFullEntity
objects that binds to a given name
-
setBinding
Sets a new named binding. -
setNullBinding
Sets a new named binding with null value.- Parameters:
name
- of the binding
-
addBinding
Sets a new positional binding.- Parameters:
cursor
- aCursor
object to be set as a new positional binding
-
addBinding
Sets a new positional binding.- Parameters:
value
- a String object or a list of String objects to be set as a new positional binding
-
addBinding
Sets a new positional binding.- Parameters:
value
- a long value or a list of long values to be set as a new positional binding
-
addBinding
Sets a new positional binding.- Parameters:
value
- a double value or a list of double values to be set as a new positional binding
-
addBinding
Sets a new positional binding.- Parameters:
value
- a boolean value or a list of boolean values to be set as a new positional binding
-
addBinding
Sets a new positional binding.- Parameters:
value
- aTimestamp
object or a list ofTimestamp
objects to be set as a new positional binding
-
addBinding
Sets a new positional binding. -
addBinding
Deprecated.Sets a new positional binding.- Parameters:
value
- aFullEntity
object or a list ofFullEntity
objects to be set as a new positional binding
-
addBinding
Sets a new positional binding. -
build
-