Home » Search

About LockMode

1-10 of 19Refresh
JPA Doc
85

find(entityClass, primaryKey, lockMode)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   LockModeType lockMode ) Find by primary key and lock. Search for an entity of the specified class ... primaryKey - primary key lockMode - lock mode Returns: the found entity instance or null if the entity
JPA Doc
85

find(entityClass, primaryKey, lockMode, properties)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   LockModeType lockMode,   Map properties ) Find by primary key and lock, using the specified ... : entityClass - entity class primaryKey - primary key lockMode - lock mode properties - standard and vendor
JPA Doc
85

find(entityClass, primaryKey, lockMode, properties)

Method javax.persistence.EntityManager T find(   Class entityClass,   Object primaryKey,   LockModeType lockMode,   Map properties ) Find by primary key and lock, using ... . Parameters: entityClass - entity class primaryKey - primary key lockMode - lock mode properties - standard
JPA Doc
85

lock(entity, lockMode)

Method javax.persistence.EntityManager void lock(   Object entity,   LockModeType lockMode ) Lock an entity instance that is contained in the persistence context with the specified lock mode type ... instance lockMode - lock mode Throws: IllegalArgumentException - if the instance is not an entity or
JPA Doc
85

lock(entity, lockMode, properties)

Method javax.persistence.EntityManager void lock(   Object entity,   LockModeType lockMode,   Map properties ) Lock an entity instance that is contained in the persistence context ... . Parameters: entity - entity instance lockMode - lock mode properties - standard and vendor-specific
JPA Doc
85

NamedQuery.lockMode

Annotation Element javax.persistence.NamedQuery LockModeType lockMode (Optional) The lock mode type to use in query execution. If a lockMode other than LockModeType.NONE is specified, the query must be executed in a transaction. Default value: javax.persistence.LockModeType.NONE Since: JPA 2.0
JPA Doc
85

refresh(entity, lockMode)

Method javax.persistence.EntityManager void refresh(   Object entity,   LockModeType lockMode ) Refresh the state of the instance from the database, overwriting changes made to the entity, if any ... lockMode - lock mode Throws: IllegalArgumentException - if the instance is not an entity or the entity
JPA Doc
85

refresh(entity, lockMode, properties)

Method javax.persistence.EntityManager void refresh(   Object entity,   LockModeType lockMode,   Map properties ) Refresh the state of the instance from the database, overwriting ... : entity - entity instance lockMode - lock mode properties - standard and vendor-specific properties
JPA Doc
85

setLockMode(lockMode)

Method javax.persistence.Query Query setLockMode(   LockModeType lockMode ) Set the lock mode type to be used for the query execution. Parameters: lockMode - lock mode Returns: the same query instance Throws: IllegalStateException - if the query is found not to be a Java Persistence query language SELECT query or a Criteria API query Since: JPA 2.0
JPA Doc
85

setLockMode(lockMode)

Method javax.persistence.TypedQuery TypedQuery setLockMode(   LockModeType lockMode ) Set the lock mode type to be used for the query execution. Parameters: lockMode - lock mode Returns: the same query instance Throws: IllegalStateException - if the query is found not to be a Java Persistence