Interface SqlValue.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SqlValue.Builder,SqlValue>, SdkBuilder<SqlValue.Builder,SqlValue>, SdkPojo
Enclosing class:
SqlValue

@Mutable @NotThreadSafe public static interface SqlValue.Builder extends SdkPojo, CopyableBuilder<SqlValue.Builder,SqlValue>
  • Method Details

    • nullValue

      SqlValue.Builder nullValue(Boolean nullValue)

      Specifies whether the value is a SQL NULL. Always true when present.

      Parameters:
      nullValue - Specifies whether the value is a SQL NULL. Always true when present.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • booleanValue

      SqlValue.Builder booleanValue(Boolean booleanValue)

      A BOOLEAN column value.

      Parameters:
      booleanValue - A BOOLEAN column value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • longValue

      SqlValue.Builder longValue(Long longValue)

      A TINYINT, SMALLINT, INTEGER, or BIGINT column value.

      Parameters:
      longValue - A TINYINT, SMALLINT, INTEGER, or BIGINT column value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • doubleValue

      SqlValue.Builder doubleValue(Double doubleValue)

      REAL and DOUBLE, except NaN and infinities, which are stringValue (NaN, Infinity, -Infinity).

      Parameters:
      doubleValue - REAL and DOUBLE, except NaN and infinities, which are stringValue (NaN, Infinity, -Infinity).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stringValue

      SqlValue.Builder stringValue(String stringValue)

      VARCHAR, and the types whose exact form is text: DECIMAL and unsigned 64-bit integers in plain notation, DATE (yyyy-MM-dd), TIME and TIMESTAMP (ISO-8601 at the column's precision; Z when timeZone is set), and INTERVAL (ISO-8601 duration). An UNKNOWN column's values are NULL. A non-null value of a type the service cannot return fails the request with ValidationException (cast the column to VARCHAR).

      Parameters:
      stringValue - VARCHAR, and the types whose exact form is text: DECIMAL and unsigned 64-bit integers in plain notation, DATE (yyyy-MM-dd), TIME and TIMESTAMP (ISO-8601 at the column's precision; Z when timeZone is set), and INTERVAL (ISO-8601 duration). An UNKNOWN column's values are NULL. A non-null value of a type the service cannot return fails the request with ValidationException (cast the column to VARCHAR).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • blobValue

      SqlValue.Builder blobValue(SdkBytes blobValue)

      A VARBINARY column value, as binary data.

      Parameters:
      blobValue - A VARBINARY column value, as binary data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • jsonValue

      SqlValue.Builder jsonValue(String jsonValue)

      An ARRAY, STRUCT, or MAP column value, as JSON text: an array, an object, and an array of {"key": ..., "value": ...} entries. Nested values follow the same rules, with NULL as null.

      Parameters:
      jsonValue - An ARRAY, STRUCT, or MAP column value, as JSON text: an array, an object, and an array of {"key": ..., "value": ...} entries. Nested values follow the same rules, with NULL as null.
      Returns:
      Returns a reference to this object so that method calls can be chained together.