| |
|
| java.lang.Object org.jpox.store.expression.ScalarExpression org.jpox.store.expression.StringExpression
All known Subclasses: org.jpox.store.expression.ConcatOperatorExpression, org.jpox.store.expression.StringLiteral, org.jpox.store.expression.SubstringExpression,
StringExpression | public class StringExpression extends ScalarExpression (Code) | | Representation of an expression with a string.
version: $Revision: 1.24 $ |
StringExpression | public StringExpression(QueryExpression qs, JavaTypeMapping mapping, LogicSetExpression te)(Code) | | Parameters: qs - the QueryExpression Parameters: mapping - the mapping associated to this expression Parameters: te - the TableExpression where this expression refers to |
StringExpression | public StringExpression(String functionName, List args)(Code) | | Generates statement as e.g. FUNCTION_NAME(arg[,argN])
Parameters: functionName - Parameters: args - ScalarExpression list |
StringExpression | public StringExpression(String functionName, List args, List types)(Code) | | Generates statement as e.g. FUNCTION_NAME(arg AS type[,argN as typeN])
Parameters: functionName - Name of function Parameters: args - ScalarExpression list Parameters: types - String or ScalarExpression list |
StringExpression | public StringExpression(ScalarExpression operand1, DyadicOperator op, ScalarExpression operand2)(Code) | | Performs a function on two arguments.
op(operand1,operand2)
operand1 op operand2
Parameters: operand1 - the first expression Parameters: op - the operator between operands Parameters: operand2 - the second expression |
charAtMethod | public StringExpression charAtMethod(ScalarExpression index)(Code) | | Returns the character at a position.
Parameters: index - The position of the character required. The expression. |
endsWithMethod | public BooleanExpression endsWithMethod(ScalarExpression str)(Code) | | Returns whether this string ends with the specified string.
Parameters: str - The string to compare against. Whether it ends with the string. |
equalsMethod | public BooleanExpression equalsMethod(ScalarExpression expr)(Code) | | Returns whether this string is equal to the expression. This is provided
as an operation on String.
Parameters: expr - The expression to compare against. Expression whether they are equal. |
indexOfMethod | public NumericExpression indexOfMethod(ScalarExpression str)(Code) | | Returns the index within this string of the first occurrence of the
specified string.
Parameters: str - The string to find the index of The index of the string. |
indexOfMethod | public NumericExpression indexOfMethod(ScalarExpression str, ScalarExpression fromIndex)(Code) | | Returns the index within this string of the first occurrence of the
specified character, starting the search at the specified index.
Parameters: str - The string to find the index of Parameters: fromIndex - the index to start the search from. The index of the string. |
lengthMethod | public NumericExpression lengthMethod()(Code) | | Method to handle the starts with operation.
The expression. |
matchesMethod | public BooleanExpression matchesMethod(ScalarExpression expr)(Code) | | Matches this to the argument expression pattern. Use "." to find any
character and ".*" for wildcard matches. A global case-insensitive flag
"(?i)" can be set for the pattern. If used, the global case-insensitive
flag must prefix the pattern. The pattern passed to matches must be a
literal or parameter.
Parameters: expr - The literal expression with the pattern. the match expression. |
toLowerCaseMethod | public StringExpression toLowerCaseMethod()(Code) | | Method to handle the lower case operation.
The expression. |
toUpperCaseMethod | public StringExpression toUpperCaseMethod()(Code) | | Method to handle the upper case operation.
The expression. |
trimLeftMethod | public StringExpression trimLeftMethod()(Code) | | Method to handle trimming of the left side of a string (leading spaces).
The expression. |
trimMethod | public StringExpression trimMethod()(Code) | | Method to handle trimming of both ends of a string.
The expression. |
trimRightMethod | public StringExpression trimRightMethod()(Code) | | Method to handle trimming of the right side of a string (trailing spaces).
The expression. |
|
|
|