|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StringDataValue
| Field Summary | |
|---|---|
static int |
BOTH
|
static int |
COLLATION_DERIVATION_EXPLICIT
|
static int |
COLLATION_DERIVATION_IMPLICIT
|
static int |
COLLATION_DERIVATION_NONE
For a character string type, the collation derivation should always be "explicit"(not possible in Derby 10.3), "implicit" or "none". |
static int |
COLLATION_TYPE_TERRITORY_BASED
|
static int |
COLLATION_TYPE_UCS_BASIC
In Derby 10.3, it is possible to have database with one of the following two configurations 1)all the character columns will have a collation type of UCS_BASIC. |
static int |
LEADING
|
static int |
TRAILING
|
| Fields inherited from interface org.apache.derby.iapi.types.Orderable |
|---|
ORDER_OP_EQUALS, ORDER_OP_GREATEROREQUALS, ORDER_OP_GREATERTHAN, ORDER_OP_LESSOREQUALS, ORDER_OP_LESSTHAN |
| Fields inherited from interface org.apache.derby.iapi.types.VariableSizeDataValue |
|---|
IGNORE_PRECISION |
| Method Summary | |
|---|---|
StringDataValue |
ansiTrim(int trimType,
StringDataValue trimChar,
StringDataValue result)
The SQL Ansi trim function. |
StringDataValue |
concatenate(StringDataValue leftOperand,
StringDataValue rightOperand,
StringDataValue result)
The SQL concatenation '||' operator. |
char[] |
getCharArray()
Get a char array. |
StreamHeaderGenerator |
getStreamHeaderGenerator()
Returns the stream header generator for the string data value. |
CharacterStreamDescriptor |
getStreamWithDescriptor()
Returns a descriptor for the input stream for this data value. |
StringDataValue |
getValue(java.text.RuleBasedCollator collatorForComparison)
Gets either SQLChar/SQLVarchar/SQLLongvarchar/SQLClob(base classes) or CollatorSQLChar/CollatorSQLVarchar/CollatorSQLLongvarch/CollatorSQLClob (subclasses). |
BooleanDataValue |
like(DataValueDescriptor pattern)
The SQL like() function with out escape clause. |
BooleanDataValue |
like(DataValueDescriptor pattern,
DataValueDescriptor escape)
The SQL like() function WITH escape clause. |
NumberDataValue |
locate(StringDataValue searchFrom,
NumberDataValue start,
NumberDataValue result)
Position in searchFrom of the first occurrence of this.value. |
StringDataValue |
lower(StringDataValue result)
Convert the string to lower case. |
void |
setSoftUpgradeMode(java.lang.Boolean inSoftUpgradeMode)
Tells the data value descriptor whether the database is being accessed in soft upgrade mode or not. |
void |
setValue(java.sql.Clob value)
Stuff a StringDataValue with a Clob. |
StringDataValue |
upper(StringDataValue result)
Convert the string to upper case. |
| Methods inherited from interface org.apache.derby.iapi.types.ConcatableDataValue |
|---|
charLength, substring |
| Methods inherited from interface org.apache.derby.iapi.types.DataValueDescriptor |
|---|
checkHostVariable, coalesce, compare, compare, compare, compare, equals, estimateMemoryUsage, getBoolean, getByte, getBytes, getClone, getDate, getDouble, getFloat, getInt, getLength, getLong, getNewNull, getObject, getShort, getStream, getString, getTime, getTimestamp, getTraceString, getTypeName, greaterOrEquals, greaterThan, in, isNotNull, isNullOp, lessOrEquals, lessThan, normalize, notEquals, readExternalFromArray, recycle, setBigDecimal, setInto, setInto, setObjectForCast, setToNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromResultSet, typePrecedence, typeToBigDecimal |
| Methods inherited from interface org.apache.derby.iapi.services.io.Storable |
|---|
isNull, restoreToNull |
| Methods inherited from interface java.io.Externalizable |
|---|
readExternal, writeExternal |
| Methods inherited from interface org.apache.derby.iapi.services.io.TypedFormat |
|---|
getTypeFormatId |
| Methods inherited from interface org.apache.derby.iapi.types.VariableSizeDataValue |
|---|
setWidth |
| Field Detail |
|---|
static final int BOTH
static final int TRAILING
static final int LEADING
static final int COLLATION_DERIVATION_NONE
static final int COLLATION_DERIVATION_IMPLICIT
COLLATION_DERIVATION_NONE,
Constant Field Valuesstatic final int COLLATION_DERIVATION_EXPLICIT
COLLATION_DERIVATION_NONE,
Constant Field Valuesstatic final int COLLATION_TYPE_UCS_BASIC
static final int COLLATION_TYPE_TERRITORY_BASED
COLLATION_TYPE_UCS_BASIC,
Constant Field Values| Method Detail |
|---|
StringDataValue concatenate(StringDataValue leftOperand,
StringDataValue rightOperand,
StringDataValue result)
throws StandardException
leftOperand - String on the left hand side of '||'rightOperand - String on the right hand side of '||'result - The result of a previous call to this method,
null if not called yet.
StandardException - Thrown on error
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 useescape - the escape character
StandardException - Thrown on error
StringDataValue ansiTrim(int trimType,
StringDataValue trimChar,
StringDataValue result)
throws StandardException
trimType - type of trim. Possible values are LEADING, TRAILING
or BOTH.trimChar - The character to trim from thisresult - The result of a previous call to this method,
null if not called yet.
StandardException
StringDataValue upper(StringDataValue result)
throws StandardException
result - The result (reusable - allocate if null).
StandardException - Thrown on error
StringDataValue lower(StringDataValue result)
throws StandardException
result - The result (reusable - allocate if null).
StandardException - Thrown on error
NumberDataValue locate(StringDataValue searchFrom,
NumberDataValue start,
NumberDataValue result)
throws StandardException
searchFrom - - The string to search fromstart - - The position to search from in string searchFromresult - - The object to return
StandardException - Thrown on error
char[] getCharArray()
throws StandardException
WARNING: may return a character array that has spare characters at the end. MUST be used in conjunction with getLength() to be safe.
StandardException - Thrown on errorStringDataValue getValue(java.text.RuleBasedCollator collatorForComparison)
StreamHeaderGenerator getStreamHeaderGenerator()
The generator writes the correct header into the destination buffer or stream and also keeps track of whether appending an end-of-stream marker is required or not.
Note that the generator may fail to generate a header if there is no context at the time the header is asked for, and the mode hasn't been set explicitly.
setSoftUpgradeMode(java.lang.Boolean)void setSoftUpgradeMode(java.lang.Boolean inSoftUpgradeMode)
inSoftUpgradeMode - true if the database is being accessed
in soft upgrade mode, false if not, and null if
unknown
CharacterStreamDescriptor getStreamWithDescriptor()
throws StandardException
The descriptor contains information about header data, current positions, length, whether the stream should be buffered or not, and if the stream is capable of repositioning itself.
null if the value cannot be represented
as a stream.
StandardException - if obtaining the descriptor fails
void setValue(java.sql.Clob value)
throws StandardException
StandardException
|
Built on Sat 2009-11-28 18:44:18-0800, from revision 885187 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||