|
||||||||||
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
org.jpox.store.expression.AggregateExpression
public class AggregateExpression
Representation of aggregate functions in JDOQL
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 |
AggregateExpression(JavaTypeMapping mapping,
java.lang.String functionName,
java.util.List args,
boolean distinct)
|
|
AggregateExpression(QueryExpression qs)
Constructor |
Method Summary | |
---|---|
ScalarExpression |
avgMethod(ScalarExpression expr)
Returns the average value of the argument. |
ScalarExpression |
countMethod(ScalarExpression expr)
Returns the count value of the argument. |
ScalarExpression |
maxMethod(ScalarExpression expr)
Returns the max value of the argument. |
ScalarExpression |
minMethod(ScalarExpression expr)
Returns the max value of the argument. |
void |
setDistinct()
Method to enable use of DISTINCT on the aggregate field column |
ScalarExpression |
sumMethod(ScalarExpression expr)
Returns the sum value of the argument. |
Methods inherited from class org.jpox.store.expression.NumericExpression |
---|
add, com, div, eq, gt, gteq, in, lt, lteq, mod, mul, neg, noteq, sub |
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 |
---|
public AggregateExpression(QueryExpression qs)
qs
- The query statementprotected AggregateExpression(JavaTypeMapping mapping, java.lang.String functionName, java.util.List args, boolean distinct)
Method Detail |
---|
public void setDistinct()
public ScalarExpression maxMethod(ScalarExpression expr)
expr
- the expression
public ScalarExpression minMethod(ScalarExpression expr)
expr
- the expression
public ScalarExpression sumMethod(ScalarExpression expr)
expr
- the expression
public ScalarExpression avgMethod(ScalarExpression expr)
expr
- the expression
public ScalarExpression countMethod(ScalarExpression expr)
expr
- the expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |