org.hibernate.Session.LockRequest |
Contains locking details (LockMode, Timeout and Scope).
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | PESSIMISTIC_NO_WAIT | ||||||||||
int | PESSIMISTIC_WAIT_FOREVER |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the lock mode.
| |||||||||||
Check if locking is cascaded to owned collections and relationships.
| |||||||||||
Get the timeout setting.
| |||||||||||
Specify the LockMode to be used.
| |||||||||||
Specify if LockMode should be cascaded to owned collections and relationships.
| |||||||||||
Specify the pessimistic lock timeout (check if your dialect supports this option).
|
Check if locking is cascaded to owned collections and relationships.
Get the timeout setting.
Specify the LockMode to be used. The default is LockMode.none.
Specify if LockMode should be cascaded to owned collections and relationships. The association must be mapped with cascade="lock" for scope=true to work.
Specify the pessimistic lock timeout (check if your dialect supports this option). The default pessimistic lock behavior is to wait forever for the lock.
timeout | is time in milliseconds to wait for lock. -1 means wait forever and 0 means no wait. |
---|