Class CollatorSQLClob

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

    class CollatorSQLClob
    extends SQLClob
    implements CollationElementsInterface
    CollatorSQLClob class differs from SQLClob based on how the 2 classes use different collations to collate their data. SQLClob 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

      • CollatorSQLClob

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

        CollatorSQLClob​(java.lang.String val,
                        java.text.RuleBasedCollator collatorForCharacterDatatypes)
        Create SQL CLOB value initially set to value that performs collation according to collatorForCharacterDatatypes
      • CollatorSQLClob

        CollatorSQLClob​(java.sql.Clob val,
                        java.text.RuleBasedCollator collatorForCharacterDatatypes)
        Create SQL CLOB value initially set to value that performs collation according to collatorForCharacterDatatypes