Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4627

Document how to install your own custom collation for use in sorting and comparing string data values.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.6.1.0
    • 10.10.2.0, 10.11.1.1
    • Documentation
    • None
    • High Value Fix

    Description

      The Developer's Guide suggests that you are limited to the collations shipped with the JRE. Consider, for instance, this sentence in the section titled "Character-based collation in Derby":

      "Derby currently supports only running those rules that can be loaded dynamically from the running JVM based on the territory attribute. Overrides to these rules by the user are not supported."

      This is misleading. A long time ago, Knut wrote a blog explaining how to write your own custom collation, plug it into the JRE, and then use it on string data stored in Derby: http://blogs.sun.com/kah/entry/user_defined_collation_in_apache

      This is a very useful capability of Derby. We should document it.

      Attachments

        1. DERBY-4627.diff
          43 kB
          Camilla Haase
        2. DERBY-4627.stat
          0.4 kB
          Camilla Haase
        3. DERBY-4627.zip
          22 kB
          Camilla Haase
        4. DERBY-4627-2.diff
          2 kB
          Camilla Haase
        5. cdevcollationattribs.html
          11 kB
          Camilla Haase

        Activity

          People

            chaase3 Camilla Haase
            rhillegas Richard N. Hillegas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: