nullLiteral(resultClass) - JPA CriteriaBuilder's method

Method
javax.persistence.criteria.CriteriaBuilder
Expression<T> nullLiteral(
  Class<T> resultClass
)

Create an expression for a null literal with the given type.
Parameters:
resultClass - type of the null literal
Returns:
null expression literal
Since:
JPA 2.0