java.io.Externalizable, java.io.Serializable, java.lang.Comparable, Formatable, Storable, StreamStorable, TypedFormat, CollationElementsInterface, ConcatableDataValue, DataValueDescriptor, Orderable, StringDataValue, VariableSizeDataValueclass CollatorSQLLongvarchar extends SQLLongvarchar implements CollationElementsInterface
| Modifier and Type | Field | Description |
|---|---|---|
private WorkHorseForCollatorDatatypes |
holderForCollationSensitiveInfo |
UNKNOWN_LOGICAL_LENGTHORDER_OP_EQUALS, ORDER_OP_GREATEROREQUALS, ORDER_OP_GREATERTHAN, ORDER_OP_LESSOREQUALS, ORDER_OP_LESSTHAN_clobValue, arg_passer, CHAR_HEADER_GENERATOR, RETURN_SPACE_THRESHOLD, streamBOTH, COLLATION_DERIVATION_EXPLICIT, COLLATION_DERIVATION_IMPLICIT, COLLATION_DERIVATION_NONE, COLLATION_TYPE_TERRITORY_BASED, COLLATION_TYPE_TERRITORY_BASED_IDENTICAL, COLLATION_TYPE_TERRITORY_BASED_PRIMARY, COLLATION_TYPE_TERRITORY_BASED_SECONDARY, COLLATION_TYPE_TERRITORY_BASED_TERTIARY, COLLATION_TYPE_UCS_BASIC, LEADING, TRAILINGIGNORE_PRECISION| Constructor | Description |
|---|---|
CollatorSQLLongvarchar(java.lang.String val,
java.text.RuleBasedCollator collatorForCharacterDatatypes) |
Create SQL LONG VARCHAR value initially set to value that
performs collation according to collatorForCharacterDatatypes
|
CollatorSQLLongvarchar(java.text.RuleBasedCollator collatorForCharacterDatatypes) |
Create SQL LONG VARCHAR value initially set to NULL that
performs collation according to collatorForCharacterDatatypes
|
| Modifier and Type | Method | Description |
|---|---|---|
DataValueDescriptor |
cloneValue(boolean forceMaterialization) |
Clone this DataValueDescriptor.
|
protected java.text.RuleBasedCollator |
getCollatorForCollation() |
Get the RuleBasedCollator for this instance of CollatorSQLLongvarchar.
|
DataValueDescriptor |
getNewNull() |
Get a new null value of the same type as this data value.
|
StringDataValue |
getValue(java.text.RuleBasedCollator collatorForComparison) |
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.
|
int |
hashCode() |
Return a hash code that is consistent with
stringCompare(SQLChar, SQLChar). |
boolean |
hasSingleCollationElement() |
Check if this instance represents a value that has a single
collation element.
|
BooleanDataValue |
like(DataValueDescriptor pattern) |
This method implements the like function for char (with no escape value).
|
BooleanDataValue |
like(DataValueDescriptor pattern,
DataValueDescriptor escape) |
This method implements the like function for char with an escape value.
|
protected void |
setCollator(java.text.RuleBasedCollator collatorForCharacterDatatypes) |
Set the RuleBasedCollator for this instance of CollatorSQLLongvarchar.
|
protected int |
stringCompare(SQLChar char1,
SQLChar char2) |
Compare two SQLChars.
|
checkHostVariable, coalesce, compare, compare, compareTo, dataTypeConversion, equals, flip, genericSetObject, getBytes, getTypeName, hasStream, in, invalidFormat, isNotNull, isNullOp, outOfRange, recycle, setInto, setObject, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, throwLangSetMismatch, throwLangSetMismatchcheckHostVariable, coalesce, compare, compare, getBytes, hasStream, in, isNotNull, isNullOp, recycle, setInto, setToNull, setValue, setValue, setValue, setValue, setValue, setValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitansiTrim, charLength, cloneHolder, compare, compare, copyState, equals, estimateMemoryUsage, getBoolean, getByte, getCharArray, getCollationKey, getDate, getDate, getDouble, getFloat, getInt, getLength, getLocaleFinder, getLong, getNewVarchar, getObject, getRawDataAndZeroIt, getShort, getStream, getStreamHeaderGenerator, getStreamWithDescriptor, getString, getTime, getTime, getTimestamp, getTimestamp, getTraceString, greaterOrEquals, greaterThan, hashCodeForCollation, hasNonBlankChars, isNull, lessOrEquals, lessThan, loadStream, locate, lower, notEquals, readExternal, readExternal, readExternalClobFromArray, readExternalFromArray, restoreToNull, returnStream, setBigDecimal, setFrom, setInto, setLocaleFinder, setObjectForCast, setStream, setStreamHeaderFormat, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromResultSet, setWidth, stringCompare, stringCompare, substring, throwStreamingIOException, toString, typeToBigDecimal, upper, writeClobUTF, writeExternal, zeroRawDataconcatenate, getTypeFormatId, getTypeName, normalize, typePrecedencegrowBy, normalizeprivate WorkHorseForCollatorDatatypes holderForCollationSensitiveInfo
CollatorSQLLongvarchar(java.text.RuleBasedCollator collatorForCharacterDatatypes)
CollatorSQLLongvarchar(java.lang.String val,
java.text.RuleBasedCollator collatorForCharacterDatatypes)
protected void setCollator(java.text.RuleBasedCollator collatorForCharacterDatatypes)
protected java.text.RuleBasedCollator getCollatorForCollation()
throws StandardException
getCollatorForCollation in class SQLCharStandardExceptionpublic boolean hasSingleCollationElement()
throws StandardException
CollationElementsInterfacehasSingleCollationElement in interface CollationElementsInterfacetrue if the value has exactly one collation element,
or false otherwiseStandardException - if an error occurs when accessing the valuepublic DataValueDescriptor cloneValue(boolean forceMaterialization)
DataValueDescriptor
Even though the objects can be modified independently regardless of the
value of forceMaterialization, both the clone and the
original may be dependent on the store state if
forceMaterialization is set to false. An example is if
you need to access the value you just read using cloneValue
after the current transaction has ended, or after the source result set
has been closed.
cloneValue in interface DataValueDescriptorcloneValue in class SQLLongvarcharforceMaterialization - any streams representing the data value will
be materialized if true, the data value will be kept as a
stream if possible if falseDataValueDescriptor with the same initial
value as this.DataValueDescriptor.cloneValue(boolean)public DataValueDescriptor getNewNull()
DataValueDescriptorgetNewNull in interface DataValueDescriptorgetNewNull in class SQLLongvarcharDataValueDescriptor.getNewNull()public StringDataValue getValue(java.text.RuleBasedCollator collatorForComparison)
getValue in interface StringDataValuegetValue in class SQLLongvarcharStringDataValue.getValue(RuleBasedCollator)protected int stringCompare(SQLChar char1, SQLChar char2) throws StandardException
SQLCharstringCompare in class SQLCharStandardException - Thrown on errorSQLChar.stringCompare(SQLChar, SQLChar)public int hashCode()
stringCompare(SQLChar, SQLChar).public BooleanDataValue like(DataValueDescriptor pattern) throws StandardException
like in interface StringDataValuelike in class SQLCharpattern - The pattern to useStandardException - Thrown on errorpublic BooleanDataValue like(DataValueDescriptor pattern, DataValueDescriptor escape) throws StandardException
like in interface StringDataValuelike in class SQLCharpattern - The pattern to useescape - the escape characterStandardException - Thrown on errorApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.