Class Statement.Builder (2.56.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
public static class 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 >
build()
Builds a Statement
from the builder
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
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
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
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
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
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
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
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[]]