Class WorkHorseForCollatorDatatypes


  • final class WorkHorseForCollatorDatatypes
    extends java.lang.Object
    WorkHorseForCollatorDatatypes class holds on to RuleBasedCollator, and the base SQLChar object for the collation sensitive SQLChar, SQLVarchar, SQLLongvarchar and SQLClob. This class uses RuleBasedCollator and SQLChar object in the collation sensitive methods to do the comparison. The reason for encapsulating this here is that the collation version of SQLChar, SQLVarchar, SQLLongvarchar and SQLClob do not all have to duplicate the code for collation sensitive methods. Instead, they can simply delegate the work to methods defined in this class.
    • Field Detail

      • collatorForCharacterDatatypes

        private java.text.RuleBasedCollator collatorForCharacterDatatypes
        Use this object for collation on character datatype. This collator object is passed as a parameter to the constructor.
      • stringData

        private SQLChar stringData
        collatorForCharacterDatatypes will be used on this SQLChar to determine collationElementsForString. The collationElementsForString is used by the like method to do Collator specific comparison. This SQLChar object is passed as a parameter to the constructor.
    • Constructor Detail

      • WorkHorseForCollatorDatatypes

        WorkHorseForCollatorDatatypes​(java.text.RuleBasedCollator collatorForCharacterDatatypes,
                                      SQLChar stringData)