sumAsLong(x) - JPA CriteriaBuilder's method

Create an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result.
Parameters:
x - expression representing input value to sum operation
Returns:
sum expression
Since:
JPA 2.0