Interface ResultSetOptions.Builder

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

public static interface ResultSetOptions.Builder extends SdkPojo, CopyableBuilder<ResultSetOptions.Builder,ResultSetOptions>
  • Method Details

    • decimalReturnType

      ResultSetOptions.Builder decimalReturnType(String decimalReturnType)

      A value that indicates how a field of DECIMAL type is represented in the response. The value of STRING, the default, specifies that it is converted to a String value. The value of DOUBLE_OR_LONG specifies that it is converted to a Long value if its scale is 0, or to a Double value otherwise.

      Conversion to Double or Long can result in roundoff errors due to precision loss. We recommend converting to String, especially when working with currency values.

      Parameters:
      decimalReturnType - A value that indicates how a field of DECIMAL type is represented in the response. The value of STRING, the default, specifies that it is converted to a String value. The value of DOUBLE_OR_LONG specifies that it is converted to a Long value if its scale is 0, or to a Double value otherwise.

      Conversion to Double or Long can result in roundoff errors due to precision loss. We recommend converting to String, especially when working with currency values.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • decimalReturnType

      ResultSetOptions.Builder decimalReturnType(DecimalReturnType decimalReturnType)

      A value that indicates how a field of DECIMAL type is represented in the response. The value of STRING, the default, specifies that it is converted to a String value. The value of DOUBLE_OR_LONG specifies that it is converted to a Long value if its scale is 0, or to a Double value otherwise.

      Conversion to Double or Long can result in roundoff errors due to precision loss. We recommend converting to String, especially when working with currency values.

      Parameters:
      decimalReturnType - A value that indicates how a field of DECIMAL type is represented in the response. The value of STRING, the default, specifies that it is converted to a String value. The value of DOUBLE_OR_LONG specifies that it is converted to a Long value if its scale is 0, or to a Double value otherwise.

      Conversion to Double or Long can result in roundoff errors due to precision loss. We recommend converting to String, especially when working with currency values.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • longReturnType

      ResultSetOptions.Builder longReturnType(String longReturnType)

      A value that indicates how a field of LONG type is represented. Allowed values are LONG and STRING. The default is LONG. Specify STRING if the length or precision of numeric values might cause truncation or rounding errors.

      Parameters:
      longReturnType - A value that indicates how a field of LONG type is represented. Allowed values are LONG and STRING. The default is LONG. Specify STRING if the length or precision of numeric values might cause truncation or rounding errors.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • longReturnType

      ResultSetOptions.Builder longReturnType(LongReturnType longReturnType)

      A value that indicates how a field of LONG type is represented. Allowed values are LONG and STRING. The default is LONG. Specify STRING if the length or precision of numeric values might cause truncation or rounding errors.

      Parameters:
      longReturnType - A value that indicates how a field of LONG type is represented. Allowed values are LONG and STRING. The default is LONG. Specify STRING if the length or precision of numeric values might cause truncation or rounding errors.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: