lockForUpdateis that a
lockForUpdateprevents other reads or selects as well as updates.
noLockwill instruct your grammar to ignore any shared locks when executing the query.
lockmethod will allow you to add a custom lock directive to your query. Think of it as the
rawmethod for lock directives.