|
|||||||||
| 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.RuleBasedCollator |
collatorForCharacterDatatypes
Use this object for collation on character datatype. |
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) java.text.RuleBasedCollator |
getCollatorForCollation()
Get the RuleBasedCollator which is getting used for collation sensitive methods. |
(package private) boolean |
hasSingleCollationElement()
Check if the string consists of a single collation element. |
(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
| Constructor Detail |
|---|
WorkHorseForCollatorDatatypes(java.text.RuleBasedCollator collatorForCharacterDatatypes,
SQLChar stringData)
| Method Detail |
|---|
int stringCompare(SQLChar str1,
SQLChar str2)
throws StandardException
StandardExceptionSQLChar.stringCompare(SQLChar, SQLChar)
BooleanDataValue like(DataValueDescriptor pattern)
throws StandardException
pattern - The pattern to use
StandardException - Thrown on error
BooleanDataValue like(DataValueDescriptor pattern,
DataValueDescriptor escape)
throws StandardException
pattern - The pattern to use
StandardException - Thrown on errorjava.text.RuleBasedCollator getCollatorForCollation()
boolean hasSingleCollationElement()
throws StandardException
true iff it's a single collation element
StandardExceptionCollationElementsInterface.hasSingleCollationElement()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||