Java org.hibernate LockOptions fields, constructors, methods, implement or subclass

Example usage for Java org.hibernate LockOptions fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.hibernate LockOptions.

The text is from its open source code.

Field

LockOptionsNONE
Represents LockMode.NONE (timeout + scope do not apply).
LockOptionsREAD
Represents LockMode.READ (timeout + scope do not apply).
LockOptionsUPGRADE
Represents LockMode.UPGRADE (will wait forever for lock and scope of false meaning only entity is locked).
intNO_WAIT
Indicates that the database should not wait at all to acquire the pessimistic lock.
intWAIT_FOREVER
Indicates that there is no timeout for the acquisition.

Constructor

LockOptions()
Constructs a LockOptions with all default options.
LockOptions(LockMode lockMode)
Constructs a LockOptions with the given lock mode.

Method

LockModegetLockMode()
Retrieve the overall lock mode in effect for this set of options.
booleangetScope()
Retrieve the current lock scope setting.
intgetTimeOut()
Retrieve the current timeout setting.
LockOptionssetAliasSpecificLockMode(String alias, LockMode lockMode)
Specify the LockMode to be used for a specific query alias.
LockOptionssetLockMode(LockMode lockMode)
Set the overall LockMode to be used.
LockOptionssetScope(boolean scope)
Set the scope.
LockOptionssetTimeOut(int timeout)
Set the timeout setting.