Home » Search

About EntityManager

21-30 of 200 Refresh
JPA Doc
49

detach(entity)

Method javax.persistence. EntityManager void detach(   Object entity ) Remove the given entity from the persistence context, causing a managed entity to become detached. Unflushed changes made to the entity if any (including removal of the entity), will not be synchronized to the database. Entities
JPA Doc
49

find(entityClass, primaryKey)

Method javax.persistence. EntityManager T find(   Class  entityClass,   Object primaryKey ) Find by primary key. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence context, it is returned from there. Parameters: entityClass - entity
JPA Doc
49

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
49

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
49

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
49

find(entityClass, primaryKey, properties)

Method javax.persistence. EntityManager T find(   Class  entityClass,   Object primaryKey,   Map  properties ) Find by primary key, using the specified properties. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence
JPA Doc
49

flush()

Method javax.persistence. EntityManager void flush() Synchronize the persistence context to the underlying database. Throws: TransactionRequiredException - if there is no transaction PersistenceException - if the flush fails Since: JPA 1.0
JPA Doc
49

getCriteriaBuilder()

Method javax.persistence. EntityManager CriteriaBuilder getCriteriaBuilder() Return an instance of CriteriaBuilder for the creation of CriteriaQuery objects. Returns: CriteriaBuilder instance Throws: IllegalStateException - if the entity manager has been closed Since: JPA 2.0
JPA Doc
49

getEntityManagerFactory()

Method javax.persistence. EntityManager EntityManagerFactory getEntityManagerFactory() Return the entity manager factory for the entity manager. Returns: EntityManagerFactory instance Throws: IllegalStateException - if the entity manager has been closed Since: JPA 2.0
JPA Doc
49

getFlushMode()

Method javax.persistence. EntityManager FlushModeType getFlushMode() Get the flush mode that applies to all objects contained in the persistence context. Returns: flushMode Since: JPA 1.0