getCriteriaBuilder() - JPA EntityManagerFactory's method

Return an instance of CriteriaBuilder for the creation of CriteriaQuery objects.
Returns:
CriteriaBuilder instance
Throws:
IllegalStateException - if the entity manager factory has been closed
Since:
JPA 2.0