This is one of the JPQL arithmetic functions. The ABS function takes a numeric argument and returns a number (integer, float, or double) of the same type as the argument to the function.
JPA 1.0, 2.0:
expression ::= ABS(simple_arithmetic_expression)expression ::= ABS(arithmetic_expression)
Example: SELECT DISTINCT o FROM Order o WHERE o.totalPrice > ABS(:dbl)
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ExpressionVisitor
The visitor)ExpressionVisitor to visit this objectImplements org. Expression by the given visitor.
|
| public String | getEncapsulatedExpressionQueryBNFId()
Implements abstract org. |
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| AbsExpression | back to summary |
|---|---|
| public AbsExpression(AbstractExpression parent) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(ExpressionVisitor visitor) Implements org. Doc from org. Visits this
| |
| getEncapsulatedExpressionQueryBNFId | back to summary |
|---|---|
| public String getEncapsulatedExpressionQueryBNFId() Implements abstract org. Returns the BNF used to parse the encapsulated expression. | |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |