a>&gt;&nbsp;setMaxResults(int&nbsp;maxResult)</pre>
<div class="block">Set the maximum number of results to retrieve.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../javax/persistence/Query.html#setMaxResults-int-">setMaxResults</a></code>&nbsp;in interface&nbsp;<code><a href="../../javax/persistence/Query.html" title="interface in javax.persistence">Query</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>maxResult</code> - ma