Class CollatorSQLLongvarchar

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, java.lang.Comparable, Formatable, Storable, StreamStorable, TypedFormat, CollationElementsInterface, ConcatableDataValue, DataValueDescriptor, Orderable, StringDataValue, VariableSizeDataValue

    class CollatorSQLLongvarchar
    extends SQLLongvarchar
    implements CollationElementsInterface
    CollatorSQLLongvarchar class differs from SQLLongvarchar based on how the 2 classes use different collations to collate their data. SQLLongvarchar uses Derby's default collation which is UCS_BASIC. Whereas, this class uses the RuleBasedCollator object that was passed to it in it's constructor and that RuleBasedCollator object decides the collation. In Derby 10.3, this class will be passed a RuleBasedCollator which is based on the database's territory. In future releases of Derby, this class can be used to do other kinds of collations like case-insensitive collation etc by just passing an appropriate RuleBasedCollator object for that kind of collation.
    • Constructor Detail

      • CollatorSQLLongvarchar

        CollatorSQLLongvarchar​(java.text.RuleBasedCollator collatorForCharacterDatatypes)
        Create SQL LONG VARCHAR value initially set to NULL that performs collation according to collatorForCharacterDatatypes
      • CollatorSQLLongvarchar

        CollatorSQLLongvarchar​(java.lang.String val,
                               java.text.RuleBasedCollator collatorForCharacterDatatypes)
        Create SQL LONG VARCHAR value initially set to value that performs collation according to collatorForCharacterDatatypes