Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
javax.persistence.LockModeType

Packages that use LockModeType
javax.persistence |

Uses of LockModeType in javax.persistence

Methods in javax.persistence that return LockModeType
`LockModeType` | `Query.getLockMode()` Get the current lock mode for the query.
`LockModeType` | `EntityManager.getLockMode(java.lang.Object entity)` Get the current lock mode for the entity instance.
`static LockModeType` | `LockModeType.valueOf(java.lang.String name)` Returns the enum constant of this type with the specified name.
`static LockModeType[]` | `LockModeType.values()` Returns an array containing the constants of this enum type, in the order they are declared.

Methods in javax.persistence with parameters of type LockModeType
`
`<T> T`
` | `EntityManager.find(java.lang.Class<T> entityClass, java.lang.Object primaryKey, LockModeType lockMode)` Find by primary key and lock.
`
`<T> T`
` | `EntityManager.find(java.lang.Class<T> entityClass, java.lang.Object primaryKey, LockModeType lockMode, java.util.Map<java.lang.String,java.lang.Object> properties)` Find by primary key and lock, using the specified properties.
`void` | `EntityManager.lock(java.lang.Object entity, LockModeType lockMode)` Lock an entity instance that is contained in the persistence context with the specified lock mode type.
`void` | `EntityManager.lock(java.lang.Object entity, LockModeType lockMode, java.util.Map<java.lang.String,java.lang.Object> properties)` Lock an entity instance that is contained in the persistence context with the specified lock mode type and with specified properties.
`void` | `EntityManager.refresh(java.lang.Object entity, LockModeType lockMode)` Refresh the state of the instance from the database, overwriting changes made to the entity, if any, and lock it with respect to given lock mode type.
`void` | `EntityManager.refresh(java.lang.Object entity, LockModeType lockMode, java.util.Map<java.lang.String,java.lang.Object> properties)` Refresh the state of the instance from the database, overwriting changes made to the entity, if any, and lock it with respect to given lock mode type and with specified properties.
`TypedQuery<X>` | `TypedQuery.setLockMode(LockModeType lockMode)` Set the lock mode type to be used for the query execution.
`Query` | `Query.setLockMode(LockModeType lockMode)` Set the lock mode type to be used for the query execution.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES