createQuery(resultClass) - JPA CriteriaBuilder's method

Method
javax.persistence.criteria.CriteriaBuilder
CriteriaQuery<T> createQuery(
  Class<T> resultClass
)

Create a CriteriaQuery object with the specified result type.
Parameters:
resultClass - type of the query result
Returns:
criteria query object
Since:
JPA 2.0