Class ResultSetOptions

    • Method Detail

      • decimalReturnType

        public final 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.

        If the service returns an enum value that is not available in the current SDK version, decimalReturnType will return DecimalReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from decimalReturnTypeAsString().

        Returns:
        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.

        See Also:
        DecimalReturnType
      • decimalReturnTypeAsString

        public final String decimalReturnTypeAsString()

        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.

        If the service returns an enum value that is not available in the current SDK version, decimalReturnType will return DecimalReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from decimalReturnTypeAsString().

        Returns:
        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.

        See Also:
        DecimalReturnType
      • longReturnType

        public final 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.

        If the service returns an enum value that is not available in the current SDK version, longReturnType will return LongReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from longReturnTypeAsString().

        Returns:
        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.
        See Also:
        LongReturnType
      • longReturnTypeAsString

        public final String longReturnTypeAsString()

        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.

        If the service returns an enum value that is not available in the current SDK version, longReturnType will return LongReturnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from longReturnTypeAsString().

        Returns:
        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.
        See Also:
        LongReturnType
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)