Jakarta Persistence (JPA) Method

boolean hasMoreResults()


Return true if the next result corresponds to a result set, and false if it is an update count or if there are no results other than through INOUT and OUT parameters, if any.
Returns:
true if next result corresponds to result set.
Throws:
PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back.
QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back.
Since:
Jakarta Persistence (JPA) 1.0