="../../jakarta/persistence/LockModeType.html" title="enum in jakarta.persistence">LockModeType</a>&nbsp;lockMode)</pre>
<div class="block">Set the lock mode type to be used for the query execution.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../jakarta/persistence/Query.html#setLockMode-jakarta.persistence.LockModeType-">setLockMode</a></code>&nbsp;in interface&nbsp;<code><a href="../../jakarta/persistence/Query.html" title="interface in jakarta.persist