Class BoundStatement.Builder (2.58.2)

public static class BoundStatement.Builder

Inheritance

java.lang.Object > BoundStatement.Builder

Constructors

Builder(PreparedStatementImpl preparedStatement, Map<String,SqlType<?>> paramTypes)

public Builder(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.

Parameters
Name Description
preparedStatement com.google.cloud.bigtable.data.v2.internal.PreparedStatementImpl
paramTypes Map<String,SqlType<?>>

Methods

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

public BoundStatement.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
BoundStatement.Builder

build()

public BoundStatement build()

Builds a BoundStatement from the builder

Returns
Type Description
BoundStatement

setBooleanParam(String paramName, Boolean value)

public BoundStatement.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
BoundStatement.Builder

setBytesParam(String paramName, ByteString value)

public BoundStatement.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
BoundStatement.Builder

setDateParam(String paramName, Date value)

public BoundStatement.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
BoundStatement.Builder

setDoubleParam(String paramName, Double value)

public BoundStatement.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
BoundStatement.Builder

setFloatParam(String paramName, Float value)

public BoundStatement.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
BoundStatement.Builder

setLongParam(String paramName, Long value)

public BoundStatement.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
BoundStatement.Builder

setStringParam(String paramName, String value)

public BoundStatement.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
BoundStatement.Builder

setTimestampParam(String paramName, Instant value)

public BoundStatement.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 Instant
Returns
Type Description
BoundStatement.Builder