The
ABS
function removes the minus sign from a specified argument and returns the absolute value, which is always a positive number or zero.
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.
BNF: expression ::= ABS(simple_arithmetic_expression)
@see AbsExpression
@version 2.4
@since 2.4
@author Pascal Filion
| */
public T abs(T builder) {
checkBuilder(builder);
StateObject stateObject = new AbsExpressionStateObject(parent, pop());
add(stateObject);
return (T) this;
}
|
| @Override
public void visit(AbsExpression expression) {
expression.getExpression().accept(this);
AbsExpressionStateObject stateObject = new AbsExpressionStateObject(parent, this.stateObject);
stateObject.setExpression(expression);
this.stateObject = stateObject;
}
|
Related Classes of org.eclipse.persistence.jpa.jpql.tools.model.query.AbsExpressionStateObject
Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact
coftware#gmail.com.