Send feedback
Class Statement.Builder (2.44.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.44.1 keyboard_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
Parameters
Name
Description
paramName
String
value
org.threeten.bp.Instant
Send feedback
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 2024-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]