Uses of Class
jakarta.persistence.LockModeType
-
Packages that use LockModeType Package Description jakarta.persistence Jakarta Persistence is the API for the management for persistence and object/relational mapping.org.hibernate.search.mapper.orm.search.query.impl -
-
Uses of LockModeType in jakarta.persistence
Methods in jakarta.persistence that return LockModeType Modifier and Type Method Description LockModeTypeEntityManager. getLockMode(Object entity)Get the current lock mode for the entity instance.LockModeTypeQuery. getLockMode()Get the current lock mode for the query.LockModeTypelockMode()(Optional) The lock mode type to use in query execution.static LockModeTypeLockModeType. valueOf(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 jakarta.persistence with parameters of type LockModeType Modifier and Type Method Description <T> TEntityManager. find(Class<T> entityClass, Object primaryKey, LockModeType lockMode)Find by primary key and lock.<T> TEntityManager. find(Class<T> entityClass, Object primaryKey, LockModeType lockMode, Map<String,Object> properties)Find by primary key and lock, using the specified properties.voidEntityManager. lock(Object entity, LockModeType lockMode)Lock an entity instance that is contained in the persistence context with the specified lock mode type.voidEntityManager. lock(Object entity, LockModeType lockMode, Map<String,Object> properties)Lock an entity instance that is contained in the persistence context with the specified lock mode type and with specified properties.voidEntityManager. refresh(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.voidEntityManager. refresh(Object entity, LockModeType lockMode, Map<String,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.QueryQuery. setLockMode(LockModeType lockMode)Set the lock mode type to be used for the query execution.TypedQuery<X>TypedQuery. setLockMode(LockModeType lockMode)Set the lock mode type to be used for the query execution. -
Uses of LockModeType in org.hibernate.search.mapper.orm.search.query.impl
Methods in org.hibernate.search.mapper.orm.search.query.impl that return LockModeType Modifier and Type Method Description LockModeTypeHibernateOrmSearchQueryAdapter. getLockMode()Methods in org.hibernate.search.mapper.orm.search.query.impl with parameters of type LockModeType Modifier and Type Method Description HibernateOrmSearchQueryAdapter<R>HibernateOrmSearchQueryAdapter. setLockMode(LockModeType lockModeType)
-