java.io.Externalizable
, java.io.Serializable
, java.lang.Comparable
, Formatable
, Storable
, StreamStorable
, TypedFormat
, CollationElementsInterface
, ConcatableDataValue
, DataValueDescriptor
, Orderable
, StringDataValue
, VariableSizeDataValue
class CollatorSQLClob extends SQLClob implements CollationElementsInterface
Modifier and Type | Field | Description |
---|---|---|
private WorkHorseForCollatorDatatypes |
holderForCollationSensitiveInfo |
UNKNOWN_LOGICAL_LENGTH
ORDER_OP_EQUALS, ORDER_OP_GREATEROREQUALS, ORDER_OP_GREATERTHAN, ORDER_OP_LESSOREQUALS, ORDER_OP_LESSTHAN
_clobValue, arg_passer, CHAR_HEADER_GENERATOR, RETURN_SPACE_THRESHOLD, stream
BOTH, 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, TRAILING
IGNORE_PRECISION
Constructor | Description |
---|---|
CollatorSQLClob(java.lang.String val,
java.text.RuleBasedCollator collatorForCharacterDatatypes) |
Create SQL CLOB value initially set to value that
performs collation according to collatorForCharacterDatatypes
|
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
|
Modifier and Type | Method | 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.
|
checkHostVariable, coalesce, compare, compare, compareTo, dataTypeConversion, equals, flip, genericSetObject, getTypeName, in, invalidFormat, isNotNull, isNullOp, outOfRange, recycle, setInto, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, throwLangSetMismatch, throwLangSetMismatch
checkHostVariable, coalesce, compare, compare, in, isNotNull, isNullOp, recycle, setInto, setToNull, setValue, setValue, setValue, setValue, setValue, setValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
ansiTrim, 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, zeroRawData
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, writeExternal
growBy, normalize
private 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 SQLChar
StandardException
public boolean hasSingleCollationElement() throws StandardException
CollationElementsInterface
hasSingleCollationElement
in interface CollationElementsInterface
true
if the value has exactly one collation element,
or false
otherwiseStandardException
- if an error occurs when accessing the valuepublic DataValueDescriptor cloneValue(boolean forceMaterialization)
SQLClob
Unlike 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 DataValueDescriptor
cloneValue
in class SQLClob
forceMaterialization
- any streams representing the data value will
be materialized if true
, the data value will be kept as a
stream if possible if false
DataValueDescriptor.cloneValue(boolean)
public DataValueDescriptor getNewNull()
DataValueDescriptor
getNewNull
in interface DataValueDescriptor
getNewNull
in class SQLClob
DataValueDescriptor.getNewNull()
public StringDataValue getValue(java.text.RuleBasedCollator collatorForComparison)
getValue
in interface StringDataValue
getValue
in class SQLClob
StringDataValue.getValue(RuleBasedCollator)
protected int stringCompare(SQLChar char1, SQLChar char2) throws StandardException
SQLChar
stringCompare
in class SQLChar
StandardException
- Thrown on errorSQLChar.stringCompare(SQLChar, SQLChar)
public int hashCode()
stringCompare(SQLChar, SQLChar)
.public BooleanDataValue like(DataValueDescriptor pattern) throws StandardException
like
in interface StringDataValue
like
in class SQLChar
pattern
- The pattern to useStandardException
- Thrown on errorpublic BooleanDataValue like(DataValueDescriptor pattern, DataValueDescriptor escape) throws StandardException
like
in interface StringDataValue
like
in class SQLChar
pattern
- The pattern to useescape
- the escape characterStandardException
- Thrown on errorApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.