84 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, LockModeType lockMode, Map<K,V> properties ) Find by primary key and lock, using the specified properties ... - entity class primaryKey - primary key lockMode - lock mode properties - standard and vendor |
84 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, LockModeType lockMode ) Find by primary key and lock. Search for an entity of the specified class and primary ... - primary key lockMode - lock mode Returns: the found entity instance or null if the entity does not |
84 | 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 |
84 | 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 |
84 | Method javax.persistence.TypedQuery TypedQuery<X> 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 |
84 | Method javax.persistence.EntityManager void lock( Object entity, LockModeType lockMode, Map<String,Object> properties ) Lock an entity instance that is contained in the persistence context ... . Parameters: entity - entity instance lockMode - lock mode properties - standard and vendor-specific |
84 | Method javax.persistence.EntityManager void refresh( Object entity, LockModeType lockMode, Map<String,Object> properties ) Refresh the state of the instance from the database, overwriting changes ... : entity - entity instance lockMode - lock mode properties - standard and vendor-specific properties |
84 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, LockModeType lockMode, Map<String,Object> properties ) Find by primary key and lock, using the specified ... : entityClass - entity class primaryKey - primary key lockMode - lock mode properties - standard |
84 | 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 |
8 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, LockModeType lockMode, Map<K,V> properties ) Find by primary key and lock, using the specified properties ... - entity class primaryKey - primary key lockMode - lock mode properties - standard and vendor |