About LockModeType

21-30 of 45Refresh
JPA Doc
12

javax.persistence.NamedQuery

value: {} Since: JPA 1.0 LockModeType lockMode (Optional) The lock mode type to use in query execution. (Optional) The lock mode type to use in query execution. If a lockMode other than LockModeType ... .LockModeType.NONE Since: JPA 2.0 String name (Required) The name used to refer to the query
JPA Doc
10

javax.persistence.Query

instance. Returns: query properties and hints Since: JPA 2.0 LockModeType getLockMode() Get the current ... Query setLockMode( LockModeType lockMode) Set the lock mode type to be used for the query execution
JPA Doc
7

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 and primary key and lock it with respect to the specified lock type. If the entity instance is contained in
JPA Doc
7

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 properties. Search for an entity of the specified class and primary key and lock it with respect
JPA Doc
7

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 properties. Search for an entity of the specified class and primary key and lock it with respect
JPA Doc
7

getLockMode()

Method javax.persistence.Query LockModeType getLockMode() Get the current lock mode for the query. Returns: lock mode 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
7

getLockMode(entity)

Method javax.persistence.EntityManager LockModeType getLockMode(   Object entity ) Get the current lock mode for the entity instance. Parameters: entity - entity instance Returns: lock mode Throws: TransactionRequiredException - if there is no transaction IllegalArgumentException - if the instance
Result
7

java.io.Serializable

, JDOUnsupportedOptionException, JDOUserCallbackException, JDOUserException, JoinType, LoadState, LockModeType
Result
7

java.lang.Comparable

, JoinType, LoadState, LockModeType, LongIdentity, NullValue, ObjectIdentity, ObjectState
JPA Doc
7

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. If a pessimistic lock mode type is specified and the entity contains a version attribute