public static class BoundStatement.Builder extends Object
| Constructor and Description |
|---|
Builder(com.google.cloud.bigtable.data.v2.internal.PreparedStatementImpl preparedStatement,
Map<String,SqlType<?>> paramTypes)
Creates a builder from a
PreparedStatement
This is considered an internal implementation detail and should not be used by
applications. |
| Modifier and Type | Method and Description |
|---|---|
BoundStatement |
build()
Builds a
BoundStatement from the builder |
BoundStatement.Builder |
setBooleanParam(String paramName,
Boolean value)
Sets a query parameter with the name
paramName and the BOOL typed value value |
BoundStatement.Builder |
setBytesParam(String paramName,
com.google.protobuf.ByteString value)
Sets a query parameter with the name
paramName and the Bytes typed value value |
BoundStatement.Builder |
setDateParam(String paramName,
com.google.cloud.Date value)
Sets a query parameter with the name
paramName and the DATE typed value value |
BoundStatement.Builder |
setDoubleParam(String paramName,
Double value)
Sets a query parameter with the name
paramName and the FLOAT64 typed value value |
BoundStatement.Builder |
setFloatParam(String paramName,
Float value)
Sets a query parameter with the name
paramName and the FLOAT32 typed value value |
<T> BoundStatement.Builder |
setListParam(String paramName,
List<T> value,
SqlType.Array<T> arrayType)
Sets a query parameter with the name
paramName and the ARRAY typed value value. |
BoundStatement.Builder |
setLongParam(String paramName,
Long value)
Sets a query parameter with the name
paramName and the INT64 typed value value |
BoundStatement.Builder |
setStringParam(String paramName,
String value)
Sets a query parameter with the name
paramName and the String typed value value |
BoundStatement.Builder |
setTimestampParam(String paramName,
Instant value)
Sets a query parameter with the name
paramName and the TIMESTAMP typed value value |
@InternalApi(value="For internal use only")
public Builder(com.google.cloud.bigtable.data.v2.internal.PreparedStatementImpl preparedStatement,
Map<String,SqlType<?>> paramTypes)
PreparedStatement
This is considered an internal implementation detail and should not be used by applications.
public BoundStatement build()
BoundStatement from the builderpublic BoundStatement.Builder setStringParam(String paramName, @Nullable String value)
paramName and the String typed value valuepublic BoundStatement.Builder setBytesParam(String paramName, @Nullable com.google.protobuf.ByteString value)
paramName and the Bytes typed value valuepublic BoundStatement.Builder setLongParam(String paramName, @Nullable Long value)
paramName and the INT64 typed value valuepublic BoundStatement.Builder setFloatParam(String paramName, @Nullable Float value)
paramName and the FLOAT32 typed value valuepublic BoundStatement.Builder setDoubleParam(String paramName, @Nullable Double value)
paramName and the FLOAT64 typed value valuepublic BoundStatement.Builder setBooleanParam(String paramName, @Nullable Boolean value)
paramName and the BOOL typed value valuepublic BoundStatement.Builder setTimestampParam(String paramName, @Nullable Instant value)
paramName and the TIMESTAMP typed value valuepublic BoundStatement.Builder setDateParam(String paramName, @Nullable com.google.cloud.Date value)
paramName and the DATE typed value valuepublic <T> BoundStatement.Builder setListParam(String paramName, @Nullable List<T> value, SqlType.Array<T> arrayType)
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.Copyright © 2026 Google LLC. All rights reserved.