# Class BoundStatement.Builder (2.79.0)

2.79.0 (latest) 2.78.1 2.77.0 2.74.0 2.73.0 2.72.0 2.71.0 2.70.0 2.68.0 2.67.1 2.66.0 2.65.1 2.63.0 2.62.0 2.61.0 2.60.0 2.59.0 2.58.2 2.56.0 2.54.0 2.52.0 2.51.2 2.49.0 2.46.0 2.45.1 2.44.1 2.43.0 2.42.0 2.40.0 2.39.5 2.37.0 2.35.1 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.1 2.28.0

    public static class BoundStatement.Builder

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> BoundStatement.Builder

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Constructors

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

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

> [!WARNING]
> **Internal Only**: This feature is not stable for application use.
>
> *For internal use only*

Creates a builder from a [PreparedStatement](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.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` | `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<T>` |
| `arrayType` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.SqlType.Array<T>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.BoundStatement.Builder` |   |

### build()

    public BoundStatement build()

Builds a [BoundStatement](https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.BoundStatement) from the builder

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `com.google.cloud.Date` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Double.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Float.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `value` | `https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/com.google.cloud.bigtable.data.v2.models.sql.BoundStatement.Builder` |   |