JPA Method
in javax.persistence.criteria.CriteriaBuilder

Expression<Y> nullif(
  Expression<Y> x, 
  Y y
)


Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not.
Parameters:
x - expression
y - value
Return:
nullif expression
Since:
JPA 2.0