org.apache.derby.iapi.types
Interface CollationElementsInterface

All Known Implementing Classes:
CollatorSQLChar, CollatorSQLClob, CollatorSQLLongvarchar, CollatorSQLVarchar

interface CollationElementsInterface

CollationElementsInterface is an interface which will be implemented by all the Collator sensitive char data types. These methods will be called by WorkHorseForCollatorDatatypes's collation sensitive methods "like, stringcompare" etc.


Method Summary
 int[] getCollationElementsForString()
          This method translates the string into a series of collation elements.
 int getCountOfCollationElements()
          This method returns the count of collation elements for this instance of CollationElementsInterface.
 

Method Detail

getCollationElementsForString

int[] getCollationElementsForString()
                                    throws StandardException
This method translates the string into a series of collation elements. These elements will get used in the like method.

Returns:
an array of collation elements for the string
Throws:
StandardException

getCountOfCollationElements

int getCountOfCollationElements()
This method returns the count of collation elements for this instance of CollationElementsInterface. This method will return the correct value only if method getCollationElementsForString has been called previously on this instance of CollationElementsInterface.

Returns:
count of collation elements for this instance of CollatorSQLChar

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.