77 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey ) Find by primary key. Search for an entity of the specified class and primary key. If the entity instance ... class primaryKey - primary key Returns: the found entity instance or null if the entity does not exist |
77 | 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 |
77 | Method javax.persistence.EntityManager T getReference( Class<T> entityClass, Object primaryKey ) Get an instance, whose state may be lazily fetched. If the requested instance does not exist in ... - entity class primaryKey - primary key Returns: the found entity instance Throws |
77 | 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 ... locking failure causes only statement-level rollback Parameters: entityClass - entity class primaryKey |
77 | Method javax.persistence.Cache void evict( Class cls, Object primaryKey ) Remove the data for the given entity from the cache. Parameters: cls - entity class primaryKey - primary key Since: JPA 2.0 |
77 | Method javax.persistence.Cache boolean contains( Class cls, Object primaryKey ) Whether the cache contains data for the given entity. Parameters: cls - entity class primaryKey - primary key Returns: boolean indicating whether the entity is in the cache Since: JPA 2.0 |
77 | 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 |
77 | Method javax.persistence.EntityManager T find( Class<T> entityClass, Object primaryKey, Map<String,Object> properties ) Find by primary key, using the specified properties. Search for an entity ... ignored. Parameters: entityClass - entity class primaryKey - primary key properties - standard |
7 | 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 |
7 | Annotation Element javax.jdo.annotations.Persistent String primaryKey Whether this member is part of the primary key for application identity. This is equivalent to specifying @PrimaryKey as a separate annotation on the member. Returns: whether this member is part of the primary key Default value: "" Since: JDO 2.1 |