Example usage for Java org.hibernate LockOptions fields, constructors, methods, implement or subclass
The text is from its open source code.
LockOptions | NONE Represents LockMode.NONE (timeout + scope do not apply). |
LockOptions | READ Represents LockMode.READ (timeout + scope do not apply). |
LockOptions | UPGRADE Represents LockMode.UPGRADE (will wait forever for lock and scope of false meaning only entity is locked). |
int | NO_WAIT Indicates that the database should not wait at all to acquire the pessimistic lock. |
int | WAIT_FOREVER Indicates that there is no timeout for the acquisition. |
LockOptions() Constructs a LockOptions with all default options. | |
LockOptions(LockMode lockMode) Constructs a LockOptions with the given lock mode. |
LockMode | getLockMode() Retrieve the overall lock mode in effect for this set of options. |
boolean | getScope() Retrieve the current lock scope setting. |
int | getTimeOut() Retrieve the current timeout setting. |
LockOptions | setAliasSpecificLockMode(String alias, LockMode lockMode) Specify the LockMode to be used for a specific query alias. |
LockOptions | setLockMode(LockMode lockMode) Set the overall LockMode to be used. |
LockOptions | setScope(boolean scope) Set the scope. |
LockOptions | setTimeOut(int timeout) Set the timeout setting. |