EntityManager#lock.
Built-in options control scope,
and timeouts.
This interface may be implemented by custom provider-specific options which extend the options defined by the specification.
LockModeType, PessimisticLockScope, Timeout, EntityManager#lock(Object, LockModeType, LockOption...)