Jakarta Persistence (JPA) Method

int getMaxResults()


The maximum number of results the query object was set to retrieve. Returns Integer#MAX_VALUE if Query.setMaxResults was not applied to the query object.
Returns:
maximum number of results.
Since:
Jakarta Persistence (JPA) 2.0