Class Statement.Builder (2.49.0)

public static class Statement.Builder

Inheritance

java.lang.Object > Statement.Builder

Methods

<T>setListParam(String paramName, List<T> value, SqlType.Array<T> arrayType)

public Statement.Builder <T>setListParam(String paramName, List<T> value, SqlType.Array<T> arrayType)

Sets a query parameter with the name paramName and the ARRAY typed value value. The array element type is specified by arrayType and the List elements must be of the corresponding Java type. Null array elements are valid.

Parameters
Name Description
paramName String
value List<T>
arrayType Array<T>
Returns
Type Description
Statement.Builder

build()

public Statement build()

Builds a Statement from the builder

Returns
Type Description
Statement

setBooleanParam(String paramName, Boolean value)

public Statement.Builder setBooleanParam(String paramName, Boolean value)

Sets a query parameter with the name paramName and the BOOL typed value value

Parameters
Name Description
paramName String
value Boolean
Returns
Type Description
Statement.Builder

setBytesParam(String paramName, ByteString value)

public Statement.Builder setBytesParam(String paramName, ByteString value)

Sets a query parameter with the name paramName and the Bytes typed value value

Parameters
Name Description
paramName String
value ByteString
Returns
Type Description
Statement.Builder

setDateParam(String paramName, Date value)

public Statement.Builder setDateParam(String paramName, Date value)

Sets a query parameter with the name paramName and the DATE typed value value

Parameters
Name Description
paramName String
value com.google.cloud.Date
Returns
Type Description
Statement.Builder

setDoubleParam(String paramName, Double value)

public Statement.Builder setDoubleParam(String paramName, Double value)

Sets a query parameter with the name paramName and the FLOAT64 typed value value

Parameters
Name Description
paramName String
value Double
Returns
Type Description
Statement.Builder

setFloatParam(String paramName, Float value)

public Statement.Builder setFloatParam(String paramName, Float value)

Sets a query parameter with the name paramName and the FLOAT32 typed value value

Parameters
Name Description
paramName String
value Float
Returns
Type Description
Statement.Builder

setLongParam(String paramName, Long value)

public Statement.Builder setLongParam(String paramName, Long value)

Sets a query parameter with the name paramName and the INT64 typed value value

Parameters
Name Description
paramName String
value Long
Returns
Type Description
Statement.Builder

setStringParam(String paramName, String value)

public Statement.Builder setStringParam(String paramName, String value)

Sets a query parameter with the name paramName and the String typed value value

Parameters
Name Description
paramName String
value String
Returns
Type Description
Statement.Builder

setTimestampParam(String paramName, Instant value)

public Statement.Builder setTimestampParam(String paramName, Instant value)

Sets a query parameter with the name paramName and the TIMESTAMP typed value value

Parameters
Name Description
paramName String
value org.threeten.bp.Instant
Returns
Type Description
Statement.Builder