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 EntityManagerEntityManagerFactory. createEntityManager()Create a new application-managedEntityManager.EntityManagerEntityManagerFactory. createEntityManager(SynchronizationType synchronizationType)Create a new JTA application-managedEntityManagerwith the specified synchronization type.EntityManagerEntityManagerFactory. createEntityManager(SynchronizationType synchronizationType, java.util.Map<?,?> map)Create a new JTA application-managedEntityManagerwith the specified synchronization type and map of properties.EntityManagerEntityManagerFactory. createEntityManager(java.util.Map<?,?> map)Create a new application-managedEntityManagerwith the givenMapspecifying property settings.Method parameters in jakarta.persistence with type arguments of type EntityManager Modifier and Type Method Description <R> REntityManagerFactory. callInTransaction(java.util.function.Function<EntityManager,R> work)Create a new application-managedEntityManagerwith an active transaction, and call the given function, passing theEntityManagerto the function.voidEntityManagerFactory. runInTransaction(java.util.function.Consumer<EntityManager> work)Create a new application-managedEntityManagerwith an active transaction, and execute the given function, passing theEntityManagerto the function.
-