Class GqlQuery.Builder<V> (2.18.5)

public static final class GqlQuery.Builder<V>

A GQL query builder.

Inheritance

java.lang.Object > GqlQuery.Builder<V>

Type Parameter

NameDescription
V

Methods

addBinding(boolean[] value)

public GqlQuery.Builder<V> addBinding(boolean[] value)

Sets a new positional binding.

Parameter
NameDescription
valueboolean[]

a boolean value or a list of boolean values to be set as a new positional binding

Returns
TypeDescription
Builder<V>

addBinding(Timestamp[] value)

public GqlQuery.Builder<V> addBinding(Timestamp[] value)

Sets a new positional binding.

Parameter
NameDescription
valuecom.google.cloud.Timestamp[]

a Timestamp object or a list of Timestamp objects to be set as a new positional binding

Returns
TypeDescription
Builder<V>

addBinding(Blob[] value)

public GqlQuery.Builder<V> addBinding(Blob[] value)

Sets a new positional binding.

Parameter
NameDescription
valueBlob[]

a Blob object or a list of Blob objects to be set as a new positional binding

Returns
TypeDescription
Builder<V>

addBinding(Cursor cursor)

public GqlQuery.Builder<V> addBinding(Cursor cursor)

Sets a new positional binding.

Parameter
NameDescription
cursorCursor

a Cursor object to be set as a new positional binding

Returns
TypeDescription
Builder<V>

addBinding(FullEntity<?>[] value)

public GqlQuery.Builder<V> addBinding(FullEntity<?>[] value)

Sets a new positional binding.

Parameter
NameDescription
valueFullEntity<?>[]

a FullEntity object or a list of FullEntity objects to be set as a new positional binding

Returns
TypeDescription
Builder<V>

addBinding(Key[] value)

public GqlQuery.Builder<V> addBinding(Key[] value)

Sets a new positional binding.

Parameter
NameDescription
valueKey[]

a Key object or a list of Key objects to be set as a new positional binding

Returns
TypeDescription
Builder<V>

addBinding(double[] value)

public GqlQuery.Builder<V> addBinding(double[] value)

Sets a new positional binding.

Parameter
NameDescription
valuedouble[]

a double value or a list of double values to be set as a new positional binding

Returns
TypeDescription
Builder<V>

addBinding(String[] value)

public GqlQuery.Builder<V> addBinding(String[] value)

Sets a new positional binding.

Parameter
NameDescription
valueString[]

a String object or a list of String objects to be set as a new positional binding

Returns
TypeDescription
Builder<V>

addBinding(long[] value)

public GqlQuery.Builder<V> addBinding(long[] value)

Sets a new positional binding.

Parameter
NameDescription
valuelong[]

a long value or a list of long values to be set as a new positional binding

Returns
TypeDescription
Builder<V>

build()

public GqlQuery<V> build()
Returns
TypeDescription
GqlQuery<V>

clearBindings()

public GqlQuery.Builder<V> clearBindings()
Returns
TypeDescription
Builder<V>

setAllowLiteral(boolean allowLiteral)

public GqlQuery.Builder<V> setAllowLiteral(boolean allowLiteral)

Sets whether the query string can contain literals. When false, the query string must not contain any literals and instead must bind all values.

Parameter
NameDescription
allowLiteralboolean
Returns
TypeDescription
Builder<V>

setBinding(String name, boolean[] value)

public GqlQuery.Builder<V> setBinding(String name, boolean[] value)

Sets a new named binding.

Parameters
NameDescription
nameString

name of the binding

valueboolean[]

a boolean value or a list of boolean values that binds to a given name

Returns
TypeDescription
Builder<V>

setBinding(String name, Timestamp[] value)

public GqlQuery.Builder<V> setBinding(String name, Timestamp[] value)

Sets a new named binding.

Parameters
NameDescription
nameString

name of the binding

valuecom.google.cloud.Timestamp[]

a Timestamp object or a list of Timestamp objects that binds to a given name

Returns
TypeDescription
Builder<V>

setBinding(String name, Blob[] value)

public GqlQuery.Builder<V> setBinding(String name, Blob[] value)

Sets a new named binding.

Parameters
NameDescription
nameString

name of the binding

valueBlob[]

a Blob object or list of Blob objects that binds to a given name

Returns
TypeDescription
Builder<V>

setBinding(String name, Cursor cursor)

public GqlQuery.Builder<V> setBinding(String name, Cursor cursor)

Sets a new named binding.

Parameters
NameDescription
nameString

name of the binding

cursorCursor

a Cursor object that binds to a given name

Returns
TypeDescription
Builder<V>

setBinding(String name, FullEntity<?>[] value)

public GqlQuery.Builder<V> setBinding(String name, FullEntity<?>[] value)

Sets a new named binding.

Parameters
NameDescription
nameString

name of the binding

valueFullEntity<?>[]

a FullEntity object or a list of FullEntity objects that binds to a given name

Returns
TypeDescription
Builder<V>

setBinding(String name, Key[] value)

public GqlQuery.Builder<V> setBinding(String name, Key[] value)

Sets a new named binding.

Parameters
NameDescription
nameString

name of the binding

valueKey[]

a Key object or a list of Key objects that binds to a given name

Returns
TypeDescription
Builder<V>

setBinding(String name, double[] value)

public GqlQuery.Builder<V> setBinding(String name, double[] value)

Sets a new named binding.

Parameters
NameDescription
nameString

name of the binding

valuedouble[]

a double value or a list of double values that binds to a given name

Returns
TypeDescription
Builder<V>

setBinding(String name, String[] value)

public GqlQuery.Builder<V> setBinding(String name, String[] value)

Sets a new named binding.

Parameters
NameDescription
nameString

name of the binding

valueString[]

a String object or a list of String objects that binds to a given name

Returns
TypeDescription
Builder<V>

setBinding(String name, long[] value)

public GqlQuery.Builder<V> setBinding(String name, long[] value)

Sets a new named binding.

Parameters
NameDescription
nameString

name of the binding

valuelong[]

a long value or a list of long values that binds to a given name

Returns
TypeDescription
Builder<V>

setNamespace(String namespace)

public GqlQuery.Builder<V> setNamespace(String namespace)

Sets the namespace for the GQL query.

Parameter
NameDescription
namespaceString
Returns
TypeDescription
Builder<V>

setNullBinding(String name)

public GqlQuery.Builder<V> setNullBinding(String name)

Sets a new named binding with null value.

Parameter
NameDescription
nameString

of the binding

Returns
TypeDescription
Builder<V>

setQuery(String query)

public GqlQuery.Builder<V> setQuery(String query)

Sets the GQL query.

Parameter
NameDescription
queryString
Returns
TypeDescription
Builder<V>