|
|||||||||
| 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. |
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. |
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)
|
Built on Thu 2008-08-14 18:45:39-0700, from revision 686102 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||