JPA Method
in javax.persistence.criteria.CriteriaBuilder$SimpleCase

CriteriaBuilder.SimpleCase<C,R> when(
  C condition, 
  Expression<?extendsR> result
)


Add a when/then clause to the case expression.
Parameters:
condition - "when" condition
result - "then" result expression
Return:
simple case expression
Since:
JPA 2.0