JPA Method
in javax.persistence.criteria.CriteriaBuilder

Expression<Long> countDistinct(
  Expression<?> x
)


Create an aggregate expression applying the count distinct operation.
Parameters:
x - expression representing input value to count distinct operation
Return:
count distinct expression
Since:
JPA 2.0