ObjectDB ObjectDB

getMaxResults() - JPA Query's method

Method
javax.persistence.Query
int getMaxResults()

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