createQuery(criteriaQuery) - JPA EntityManager's method

Method
javax.persistence.EntityManager
TypedQuery<T> createQuery(
  CriteriaQuery<T> criteriaQuery
)

Create an instance of TypedQuery for executing a criteria query.
Parameters:
criteriaQuery - a criteria query object
Returns:
the new query instance
Throws:
IllegalArgumentException - if the criteria query is found to be invalid
Since:
JPA 2.0