class CollatorSQLClob extends SQLClob implements CollationElementsInterface
| Modifier and Type | Field and Description |
|---|---|
private WorkHorseForCollatorDatatypes |
holderForCollationSensitiveInfo |
_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, TRAILINGUNKNOWN_LOGICAL_LENGTHORDER_OP_EQUALS, ORDER_OP_GREATEROREQUALS, ORDER_OP_GREATERTHAN, ORDER_OP_LESSOREQUALS, ORDER_OP_LESSTHANIGNORE_PRECISION| Constructor and Description |
|---|
CollatorSQLClob(java.sql.Clob val,
java.text.RuleBasedCollator collatorForCharacterDatatypes)
Create SQL CLOB value initially set to value that
performs collation according to collatorForCharacterDatatypes
|
CollatorSQLClob(java.text.RuleBasedCollator collatorForCharacterDatatypes)
Create SQL CLOB value initially set to NULL that
performs collation according to collatorForCharacterDatatypes
|
CollatorSQLClob(java.lang.String val,
java.text.RuleBasedCollator collatorForCharacterDatatypes)
Create SQL CLOB value initially set to value that
performs collation according to collatorForCharacterDatatypes
|
| Modifier and Type | Method and Description |
|---|---|
DataValueDescriptor |
cloneValue(boolean forceMaterialization)
Returns a clone of this CLOB value.
|
protected java.text.RuleBasedCollator |
getCollatorForCollation()
Get the RuleBasedCollator for this instance of CollatorSQLClob.
|
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.
|
private void |
setCollator(java.text.RuleBasedCollator collatorForCharacterDatatypes)
Set the RuleBasedCollator for this instance of CollatorSQLClob.
|
protected int |
stringCompare(SQLChar char1,
SQLChar char2)
Compare two SQLChars.
|
getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLength, getLong, getObject, getShort, getStreamHeaderGenerator, getStreamWithDescriptor, getTime, getTimestamp, getTraceString, getTypeFormatId, getTypeName, hasStream, normalize, readExternal, readExternalFromArray, restoreToNull, setBigDecimal, setObject, setStream, setStreamHeaderFormat, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, typePrecedence, typeToBigDecimal, writeExternalgrowBy, normalizeansiTrim, charLength, cloneHolder, compare, compare, concatenate, copyState, equals, estimateMemoryUsage, getCharArray, getCollationKey, getDate, getLocaleFinder, getNewVarchar, getRawDataAndZeroIt, getStream, getString, getTime, getTimestamp, greaterOrEquals, greaterThan, hashCodeForCollation, hasNonBlankChars, isNull, lessOrEquals, lessThan, loadStream, locate, lower, notEquals, readExternal, readExternalClobFromArray, returnStream, setFrom, setInto, setLocaleFinder, setObjectForCast, setValue, setValue, setValue, setValueFromResultSet, setWidth, stringCompare, stringCompare, substring, throwStreamingIOException, toString, upper, writeClobUTF, zeroRawDatacheckHostVariable, coalesce, compare, compare, compareTo, dataTypeConversion, equals, flip, genericSetObject, getTypeName, in, invalidFormat, isNotNull, isNullOp, outOfRange, recycle, setInto, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, throwLangSetMismatch, throwLangSetMismatchprivate WorkHorseForCollatorDatatypes holderForCollationSensitiveInfo
CollatorSQLClob(java.text.RuleBasedCollator collatorForCharacterDatatypes)
CollatorSQLClob(java.lang.String val,
java.text.RuleBasedCollator collatorForCharacterDatatypes)
CollatorSQLClob(java.sql.Clob val,
java.text.RuleBasedCollator collatorForCharacterDatatypes)
private 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)
SQLClobUnlike the other binary types, CLOBs can be very large. We try to clone the underlying stream when possible to avoid having to materialize the value into memory.
cloneValue in interface DataValueDescriptorcloneValue in class SQLClobforceMaterialization - any streams representing the data value will
be materialized if true, the data value will be kept as a
stream if possible if falseDataValueDescriptor.cloneValue(boolean)public DataValueDescriptor getNewNull()
DataValueDescriptorgetNewNull in interface DataValueDescriptorgetNewNull in class SQLClobDataValueDescriptor.getNewNull()public StringDataValue getValue(java.text.RuleBasedCollator collatorForComparison)
getValue in interface StringDataValuegetValue in class SQLClobStringDataValue.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.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.