| Modifier and Type | Field and Description |
|---|---|
| private WorkHorseForCollatorDatatypes |
| Access | Constructor and Description |
|---|---|
| pack-priv | CollatorSQLVarchar(RuleBasedCollator collatorForCharacterDatatypes)
Create SQL VARCHAR value initially set to NULL that performs collation according to collatorForCharacterDatatypes |
| pack-priv | CollatorSQLVarchar(String val, RuleBasedCollator collatorForCharacterDatatypes)
Create SQL VARCHAR value initially set to value that performs collation according to collatorForCharacterDatatypes |
| Modifier and Type | Method and Description |
|---|---|
| public DataValueDescriptor | cloneValue(boolean
any streams representing the data value will
be materialized if forceMaterialization)true, the data value will be kept as a
stream if possible if falseOverrides org. Implements org. Clone this DataValueDescriptor. |
| protected RuleBasedCollator | Returns: The Collator object which should be used for collation operation on this objectOverrides org. Get the RuleBasedCollator for this instance of CollatorSQLVarchar. |
| public DataValueDescriptor | getNewNull()
Overrides org. Implements org. Get a new null value of the same type as this data value. |
| protected StringDataValue | getNewVarchar()
Overrides org. Get a SQLVarchar for a built-in string function. |
| public StringDataValue | getValue(RuleBasedCollator collatorForComparison)
Overrides org. Implements org. We do not anticipate this method on collation sensitive DVD to be ever called in Derby 10.3 In future, when Derby will start supporting SQL standard COLLATE clause, this method might get called on the collation sensitive DVDs. |
| public int | Returns: hash codeOverrides org. Return a hash code that is consistent with
|
| public boolean | hasSingleCollationElement()
Implements org. Check if this instance represents a value that has a single collation element. |
| public BooleanDataValue | Returns: A SQL boolean value telling whether the first operand is like the second operandThe pattern to use pattern)Overrides org. Implements org. This method implements the like function for char (with no escape value). |
| public BooleanDataValue | Returns: A SQL boolean value telling whether the first operand is like the second operandThe pattern to use pattern, DataValueDescriptor the escape character escape)Overrides org. Implements org. This method implements the like function for char with an escape value. |
| private void | setCollator(RuleBasedCollator collatorForCharacterDatatypes)
Set the RuleBasedCollator for this instance of CollatorSQLVarchar. |
| protected int | stringCompare(SQLChar char1, SQLChar char2)
Overrides org. Compare two SQLChars. |
| holderForCollationSensitiveInfo | back to summary |
|---|---|
| private WorkHorseForCollatorDatatypes holderForCollationSensitiveInfo | |
| CollatorSQLVarchar | back to summary |
|---|---|
| pack-priv CollatorSQLVarchar(RuleBasedCollator collatorForCharacterDatatypes) Create SQL VARCHAR value initially set to NULL that performs collation according to collatorForCharacterDatatypes | |
| CollatorSQLVarchar | back to summary |
|---|---|
| pack-priv CollatorSQLVarchar(String val, RuleBasedCollator collatorForCharacterDatatypes) Create SQL VARCHAR value initially set to value that performs collation according to collatorForCharacterDatatypes | |
| cloneValue | back to summary |
|---|---|
| public DataValueDescriptor cloneValue(boolean forceMaterialization) Overrides org. Implements org. Doc from org. Clone this DataValueDescriptor. Results in a new object that has the same value as this but can be modified independently.
Even though the objects can be modified independently regardless of the
value of
| |
| getCollatorForCollation | back to summary |
|---|---|
| protected RuleBasedCollator getCollatorForCollation() throws StandardException Overrides org. Get the RuleBasedCollator for this instance of CollatorSQLVarchar. It will be used to do the collation.
| |
| getNewNull | back to summary |
|---|---|
| public DataValueDescriptor getNewNull() Overrides org. Implements org. Doc from org. Get a new null value of the same type as this data value.
| |
| getNewVarchar | back to summary |
|---|---|
| protected StringDataValue getNewVarchar() throws StandardException Overrides org. Doc from org. Get a SQLVarchar for a built-in string function.
| |
| getValue | back to summary |
|---|---|
| public StringDataValue getValue(RuleBasedCollator collatorForComparison) Overrides org. Implements org. We do not anticipate this method on collation sensitive DVD to be ever called in Derby 10.3 In future, when Derby will start supporting SQL standard COLLATE clause, this method might get called on the collation sensitive DVDs. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Return a hash code that is consistent with
| |
| hasSingleCollationElement | back to summary |
|---|---|
| public boolean hasSingleCollationElement() throws StandardException Implements org. Doc from org. Check if this instance represents a value that has a single collation element.
| |
| like | back to summary |
|---|---|
| public BooleanDataValue like(DataValueDescriptor pattern) throws StandardException Overrides org. Implements org. This method implements the like function for char (with no escape value). The difference in this method and the same method in superclass is that here we use special Collator object to do the comparison rather than using the Collator object associated with the default jvm locale.
| |
| like | back to summary |
|---|---|
| public BooleanDataValue like(DataValueDescriptor pattern, DataValueDescriptor escape) throws StandardException Overrides org. Implements org. This method implements the like function for char with an escape value.
| |
| setCollator | back to summary |
|---|---|
| private void setCollator(RuleBasedCollator collatorForCharacterDatatypes) Set the RuleBasedCollator for this instance of CollatorSQLVarchar. It will be used to do the collation. | |
| stringCompare | back to summary |
|---|---|
| protected int stringCompare(SQLChar char1, SQLChar char2) throws StandardException Overrides org. Doc from org. Compare two SQLChars.
| |