Interface ConcatableDataValue

All Superinterfaces:
DataValueDescriptor, Externalizable, Formatable, Orderable, Serializable, Storable, TypedFormat, VariableSizeDataValue
All Known Subinterfaces:
BitDataValue, StringDataValue
All Known Implementing Classes:
CollatorSQLChar, CollatorSQLClob, CollatorSQLLongvarchar, CollatorSQLVarchar, SQLBinary, SQLBit, SQLBlob, SQLChar, SQLClob, SQLLongVarbit, SQLLongvarchar, SQLVarbit, SQLVarchar

public interface ConcatableDataValue extends DataValueDescriptor, VariableSizeDataValue
The ConcatableDataValue interface corresponds to the SQL 92 string value data type. It is implemented by datatypes that have a length, and can be concatenated. It is implemented by the character datatypes and the bit datatypes. The following methods are defined herein: charLength() The following is defined by the sub classes (bit and char) concatenate()
  • Method Details

    • charLength

      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