Class WorkHorseForCollatorDatatypes

java.lang.Object
org.apache.derby.iapi.types.WorkHorseForCollatorDatatypes

final class WorkHorseForCollatorDatatypes extends 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 Details

    • collatorForCharacterDatatypes

      private 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 Details

    • WorkHorseForCollatorDatatypes

      WorkHorseForCollatorDatatypes(RuleBasedCollator collatorForCharacterDatatypes, SQLChar stringData)
  • Method Details