Uses of Interface
jakarta.persistence.EntityManager
-
Packages that use EntityManager Package Description jakarta.persistence Jakarta Persistence is the API for the management for persistence and object/relational mapping. -
-
Uses of EntityManager in jakarta.persistence
Methods in jakarta.persistence that return EntityManager Modifier and Type Method Description EntityManager
EntityManagerFactory. createEntityManager()
Create a new application-managedEntityManager
.EntityManager
EntityManagerFactory. createEntityManager(SynchronizationType synchronizationType)
Create a new JTA application-managedEntityManager
with the specified synchronization type.EntityManager
EntityManagerFactory. createEntityManager(SynchronizationType synchronizationType, java.util.Map<?,?> map)
Create a new JTA application-managedEntityManager
with the specified synchronization type and map of properties.EntityManager
EntityManagerFactory. createEntityManager(java.util.Map<?,?> map)
Create a new application-managedEntityManager
with the givenMap
specifying property settings.Method parameters in jakarta.persistence with type arguments of type EntityManager Modifier and Type Method Description <R> R
EntityManagerFactory. callInTransaction(java.util.function.Function<EntityManager,R> work)
Create a new application-managedEntityManager
with an active transaction, and call the given function, passing theEntityManager
to the function.void
EntityManagerFactory. runInTransaction(java.util.function.Consumer<EntityManager> work)
Create a new application-managedEntityManager
with an active transaction, and execute the given function, passing theEntityManager
to the function.
-