|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.types.WorkHorseForCollatorDatatypes
final class WorkHorseForCollatorDatatypes
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 Summary | |
---|---|
private java.text.CollationKey |
cKey
|
private int[] |
collationElementsForString
Following is the array holding a series of collation elements for the string. |
private java.text.RuleBasedCollator |
collatorForCharacterDatatypes
Use this object for collation on character datatype. |
private int |
countOfCollationElements
Number of valid collation elements in the array above. |
private SQLChar |
stringData
collatorForCharacterDatatypes will be used on this SQLChar to determine collationElementsForString. |
Constructor Summary | |
---|---|
WorkHorseForCollatorDatatypes(java.text.RuleBasedCollator collatorForCharacterDatatypes,
SQLChar stringData)
|
Method Summary | |
---|---|
(package private) int[] |
getCollationElementsForString()
This method translates the string into a series of collation elements. |
(package private) java.text.RuleBasedCollator |
getCollatorForCollation()
Get the RuleBasedCollator which is getting used for collation sensitive methods. |
(package private) int |
getCountOfCollationElements()
This method returns the count of collation elements for SQLChar object. |
(package private) BooleanDataValue |
like(DataValueDescriptor pattern)
This method implements the like function for char (with no escape value). |
(package private) BooleanDataValue |
like(DataValueDescriptor pattern,
DataValueDescriptor escape)
This method implements the like function for char with an escape value. |
(package private) int |
stringCompare(SQLChar str1,
SQLChar str2)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.text.RuleBasedCollator collatorForCharacterDatatypes
private SQLChar stringData
private int[] collationElementsForString
private int countOfCollationElements
private java.text.CollationKey cKey
Constructor Detail |
---|
WorkHorseForCollatorDatatypes(java.text.RuleBasedCollator collatorForCharacterDatatypes, SQLChar stringData)
Method Detail |
---|
int stringCompare(SQLChar str1, SQLChar str2) throws StandardException
StandardException
SQLChar.stringCompare(SQLChar, SQLChar)
BooleanDataValue like(DataValueDescriptor pattern) throws StandardException
pattern
- The pattern to use
StandardException
- Thrown on errorBooleanDataValue like(DataValueDescriptor pattern, DataValueDescriptor escape) throws StandardException
pattern
- The pattern to use
StandardException
- Thrown on errorjava.text.RuleBasedCollator getCollatorForCollation()
int getCountOfCollationElements()
int[] getCollationElementsForString() throws StandardException
StandardException
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |