|
|||||||||||
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.NumericExpression
Representation of a Numeric expression in a Query.
Nested Class Summary |
Nested classes 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 |
NumericExpression(QueryExpression qs)
Constructor |
|
NumericExpression(QueryExpression qs,
JavaTypeMapping mapping,
LogicSetExpression te)
|
|
NumericExpression(ScalarExpression.MonadicOperator op,
ScalarExpression operand)
Perform a function op on operand |
|
NumericExpression(ScalarExpression operand1,
ScalarExpression.DyadicOperator op,
ScalarExpression operand2)
Performs a function on two arguments. |
|
NumericExpression(java.lang.String functionName,
java.util.List args)
Generates statement as e.g. |
|
NumericExpression(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. |
ScalarExpression |
com()
Bitwise Complement Operator |
ScalarExpression |
div(ScalarExpression expr)
Division Operator. |
BooleanExpression |
eq(ScalarExpression expr)
Equality operator (equals to) |
BooleanExpression |
gt(ScalarExpression expr)
Relational operator (greater than) |
BooleanExpression |
gteq(ScalarExpression expr)
Relational operator (greater than or equals) |
BooleanExpression |
in(ScalarExpression expr)
In expression. |
BooleanExpression |
lt(ScalarExpression expr)
Relational operator (lower than) |
BooleanExpression |
lteq(ScalarExpression expr)
Relational operator (lower than or equals) |
ScalarExpression |
mod(ScalarExpression expr)
Method to return a modulus expression. |
ScalarExpression |
mul(ScalarExpression expr)
Multiplication Operator |
ScalarExpression |
neg()
Unary Minus Operator |
BooleanExpression |
noteq(ScalarExpression expr)
Equality operator (not equals to) |
ScalarExpression |
sub(ScalarExpression expr)
Additive Operator. |
Methods inherited from class org.jpox.store.expression.ScalarExpression |
accessField, and, as, callMethod, cast, encloseWithInParentheses, eor, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, instanceOf, ior, not, toStatementText, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected NumericExpression(QueryExpression qs)
qs
- the QueryExpressionpublic NumericExpression(QueryExpression qs, JavaTypeMapping mapping, LogicSetExpression te)
qs
- the QueryExpressionmapping
- the mapping associated to this expressionte
- the TableExpression where this expression refers topublic NumericExpression(java.lang.String functionName, java.util.List args)
functionName
- args
- ScalarExpression listpublic NumericExpression(java.lang.String functionName, java.util.List args, java.util.List types)
functionName
- Name of functionargs
- ScalarExpression listtypes
- String or ScalarExpression listpublic NumericExpression(ScalarExpression.MonadicOperator op, ScalarExpression operand)
op
on operand
op
- operatoroperand
- operandpublic NumericExpression(ScalarExpression operand1, ScalarExpression.DyadicOperator op, ScalarExpression operand2)
operand1
- the first expressionop
- the operator between operandsoperand2
- the second expressionMethod Detail |
public BooleanExpression eq(ScalarExpression expr)
ScalarExpression
eq
in class ScalarExpression
expr
- the right-hand operand
public BooleanExpression noteq(ScalarExpression expr)
ScalarExpression
noteq
in class ScalarExpression
expr
- the right-hand operand
public BooleanExpression lt(ScalarExpression expr)
ScalarExpression
lt
in class ScalarExpression
expr
- the right-hand operand
public BooleanExpression lteq(ScalarExpression expr)
ScalarExpression
lteq
in class ScalarExpression
expr
- the right-hand operand
public BooleanExpression gt(ScalarExpression expr)
ScalarExpression
gt
in class ScalarExpression
expr
- the right-hand operand
public BooleanExpression gteq(ScalarExpression expr)
ScalarExpression
gteq
in class ScalarExpression
expr
- the right-hand operand
public BooleanExpression in(ScalarExpression expr)
ScalarExpression
expr
in
in class ScalarExpression
expr
- the right-hand expression
public ScalarExpression add(ScalarExpression expr)
ScalarExpression
add
in class ScalarExpression
expr
- the right-hand operand
public ScalarExpression sub(ScalarExpression expr)
ScalarExpression
sub
in class ScalarExpression
expr
- the right-hand operand
public ScalarExpression mul(ScalarExpression expr)
ScalarExpression
mul
in class ScalarExpression
expr
- the right-hand operator
public ScalarExpression div(ScalarExpression expr)
ScalarExpression
div
in class ScalarExpression
expr
- the right-hand operator
public ScalarExpression mod(ScalarExpression expr)
mod
in class ScalarExpression
expr
- The expression to modulus against
public ScalarExpression neg()
ScalarExpression
neg
in class ScalarExpression
public ScalarExpression com()
ScalarExpression
com
in class ScalarExpression
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |