Interface ConcatableDataValue

    • Method Detail

      • charLength

        NumberDataValue charLength​(NumberDataValue result)
                            throws StandardException
        The SQL char_length() function.
        Parameters:
        result - The result of a previous call to this method, null if not called yet.
        Returns:
        A NumberDataValue containing the result of the char_length
        Throws:
        StandardException - Thrown on error
      • substring

        ConcatableDataValue substring​(NumberDataValue start,
                                      NumberDataValue length,
                                      ConcatableDataValue result,
                                      int maxLen)
                               throws StandardException
        substr() function matchs DB2 syntax and behaviour.
        Parameters:
        start - Start of substr
        length - Length of substr
        result - The result of a previous call to this method, null if not called yet.
        maxLen - Maximum length of the result string
        Returns:
        A ConcatableDataValue containing the result of the substr()
        Throws:
        StandardException - Thrown on error