|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.expression.ScalarExpression
org.jpox.store.expression.StringExpression
public class StringExpression
Representation of an expression with a string.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jpox.store.expression.ScalarExpression |
|---|
ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.FieldExpression, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator |
| Field Summary |
|---|
| Fields inherited from class org.jpox.store.expression.ScalarExpression |
|---|
aliasIdentifier, expressionList, FILTER, LOCALISER, lowestOperator, mapping, OP_ADD, OP_AND, OP_BETWEEN, OP_COM, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_OR, OP_SUB, PROJECTION, qs, st, te |
| Constructor Summary | |
|---|---|
protected |
StringExpression(QueryExpression qs)
|
|
StringExpression(QueryExpression qs,
JavaTypeMapping mapping,
LogicSetExpression te)
|
|
StringExpression(ScalarExpression operand1,
ScalarExpression.DyadicOperator op,
ScalarExpression operand2)
Performs a function on two arguments. |
|
StringExpression(java.lang.String functionName,
java.util.List args)
Generates statement as e.g. |
|
StringExpression(java.lang.String functionName,
java.util.List args,
java.util.List types)
Generates statement as e.g. |
| Method Summary | |
|---|---|
ScalarExpression |
add(ScalarExpression expr)
Additive Operator. |
StringExpression |
charAtMethod(ScalarExpression index)
Returns the character at a position. |
BooleanExpression |
endsWithMethod(ScalarExpression str)
Returns whether this string ends with the specified string. |
BooleanExpression |
eq(ScalarExpression expr)
Equality operator (equals to) |
BooleanExpression |
equalsMethod(ScalarExpression expr)
Returns whether this string is equal to the expression. |
BooleanExpression |
gt(ScalarExpression expr)
Relational operator (greater than) |
BooleanExpression |
gteq(ScalarExpression expr)
Relational operator (greater than or equals) |
BooleanExpression |
in(ScalarExpression expr)
In expression. |
NumericExpression |
indexOfMethod(ScalarExpression str)
Returns the index within this string of the first occurrence of the specified string. |
NumericExpression |
indexOfMethod(ScalarExpression str,
ScalarExpression fromIndex)
Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index. |
NumericExpression |
lengthMethod()
Method to handle the starts with operation. |
BooleanExpression |
lt(ScalarExpression expr)
Relational operator (lower than) |
BooleanExpression |
lteq(ScalarExpression expr)
Relational operator (lower than or equals) |
BooleanExpression |
matchesMethod(ScalarExpression expr)
Matches this to the argument expression pattern. |
BooleanExpression |
noteq(ScalarExpression expr)
Equality operator (not equals to) |
BooleanExpression |
startsWithMethod(ScalarExpression str)
Method to handle the starts with operation. |
BooleanExpression |
startsWithMethod(ScalarExpression str,
ScalarExpression toffset)
Method to handle the starts with operation. |
StringExpression |
substringMethod(ScalarExpression begin)
Method to handle the substring operation. |
StringExpression |
substringMethod(ScalarExpression begin,
ScalarExpression end)
Method to handle the substring operation. |
StringExpression |
toLowerCaseMethod()
Method to handle the lower case operation. |
StringExpression |
toUpperCaseMethod()
Method to handle the upper case operation. |
StringExpression |
trimMethod()
Method to handle trimming of a string. |
| Methods inherited from class org.jpox.store.expression.ScalarExpression |
|---|
accessField, and, as, callMethod, cast, com, div, encloseWithInParentheses, eor, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, instanceOf, ior, mod, mul, neg, not, sub, toStatementText, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected StringExpression(QueryExpression qs)
public StringExpression(QueryExpression qs,
JavaTypeMapping mapping,
LogicSetExpression te)
qs - the QueryExpressionmapping - the mapping associated to this expressionte - the TableExpression where this expression refers to
public StringExpression(java.lang.String functionName,
java.util.List args)
functionName - args - ScalarExpression list
public StringExpression(java.lang.String functionName,
java.util.List args,
java.util.List types)
functionName - Name of functionargs - ScalarExpression listtypes - String or ScalarExpression list
public StringExpression(ScalarExpression operand1,
ScalarExpression.DyadicOperator op,
ScalarExpression operand2)
operand1 - the first expressionop - the operator between operandsoperand2 - the second expression| Method Detail |
|---|
public BooleanExpression eq(ScalarExpression expr)
ScalarExpression
eq in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression noteq(ScalarExpression expr)
ScalarExpression
noteq in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression lt(ScalarExpression expr)
ScalarExpression
lt in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression lteq(ScalarExpression expr)
ScalarExpression
lteq in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression gt(ScalarExpression expr)
ScalarExpression
gt in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression gteq(ScalarExpression expr)
ScalarExpression
gteq in class ScalarExpressionexpr - the right-hand operand
public ScalarExpression add(ScalarExpression expr)
ScalarExpression
add in class ScalarExpressionexpr - the right-hand operand
public BooleanExpression in(ScalarExpression expr)
ScalarExpressionexpr
in in class ScalarExpressionexpr - the right-hand expression
public BooleanExpression equalsMethod(ScalarExpression expr)
expr - The expression to compare against.
public StringExpression charAtMethod(ScalarExpression index)
index - The position of the character required.
public BooleanExpression endsWithMethod(ScalarExpression str)
str - The string to compare against.
public NumericExpression indexOfMethod(ScalarExpression str)
str - The string to find the index of
public NumericExpression indexOfMethod(ScalarExpression str,
ScalarExpression fromIndex)
str - The string to find the index offromIndex - the index to start the search from.
public NumericExpression lengthMethod()
public BooleanExpression startsWithMethod(ScalarExpression str)
str - The string to compare against
public BooleanExpression startsWithMethod(ScalarExpression str,
ScalarExpression toffset)
str - The string to compare againsttoffset - The offset
public StringExpression substringMethod(ScalarExpression begin)
begin - The start position
public StringExpression substringMethod(ScalarExpression begin,
ScalarExpression end)
begin - The start positionend - The end position
public StringExpression toLowerCaseMethod()
public StringExpression toUpperCaseMethod()
public BooleanExpression matchesMethod(ScalarExpression expr)
expr - The literal expression with the pattern.
public StringExpression trimMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||