| org.apache.derby.iapi.types.StringDataValue
All known Subclasses: org.apache.derby.iapi.types.SQLChar,
Field Summary | |
final public static int | BOTH | final public static int | LEADING | final public static int | TRAILING |
BOTH | final public static int BOTH(Code) | | |
LEADING | final public static int LEADING(Code) | | |
TRAILING | final public static int TRAILING(Code) | | |
concatenate | public StringDataValue concatenate(StringDataValue leftOperand, StringDataValue rightOperand, StringDataValue result) throws StandardException(Code) | | The SQL concatenation '||' operator.
Parameters: leftOperand - String on the left hand side of '||' Parameters: rightOperand - String on the right hand side of '||' Parameters: result - The result of a previous call to this method,null if not called yet. A ConcatableDataValue containing the result of the '||' exception: StandardException - Thrown on error |
getCharArray | public char[] getCharArray() throws StandardException(Code) | | Get a char array. Typically, this is a simple
getter that is cheaper than getString() because
we always need to create a char array when
doing I/O. Use this instead of getString() where
reasonable.
WARNING: may return a character array that has spare
characters at the end. MUST be used in conjunction
with getLength() to be safe.
exception: StandardException - Thrown on error |
locate | public NumberDataValue locate(StringDataValue searchFrom, NumberDataValue start, NumberDataValue result) throws StandardException(Code) | | Position in searchFrom of the first occurrence of this.value.
The search begins from position start. 0 is returned if searchFrom does
not contain this.value. Position 1 is the first character in searchFrom.
Parameters: searchFrom - - The string to search from Parameters: start - - The position to search from in string searchFrom Parameters: result - - The object to return The position in searchFrom the fist occurrence of this.value.0 is returned if searchFrom does not contain this.value. exception: StandardException - Thrown on error |
trim | public StringDataValue trim(int trimType, StringDataValue result) throws StandardException(Code) | | The SQL trim(), ltrim() and rtrim() functions.
Parameters: trimType - Type of trim Parameters: result - The result of a previous call to this method,null if not called yet. A StringDataValue containing the result of the trim() exception: StandardException - Thrown on error |
|
|