Package org.hibernate.testing.orm.junit
Interface EntityManagerFactoryScope
-
public interface EntityManagerFactoryScope
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> T
fromEntityManager(Function<EntityManager,T> action)
<T> T
fromTransaction(EntityManager entityManager, Function<EntityManager,T> action)
<T> T
fromTransaction(Function<EntityManager,T> action)
SQLStatementInspector
getCollectingStatementInspector()
default Dialect
getDialect()
EntityManagerFactory
getEntityManagerFactory()
StatementInspector
getStatementInspector()
<T extends StatementInspector>
TgetStatementInspector(Class<T> type)
void
inEntityManager(Consumer<EntityManager> action)
void
inTransaction(EntityManager entityManager, Consumer<EntityManager> action)
void
inTransaction(Consumer<EntityManager> action)
void
releaseEntityManagerFactory()
-
-
-
Method Detail
-
getEntityManagerFactory
EntityManagerFactory getEntityManagerFactory()
-
releaseEntityManagerFactory
void releaseEntityManagerFactory()
-
getStatementInspector
StatementInspector getStatementInspector()
-
getStatementInspector
<T extends StatementInspector> T getStatementInspector(Class<T> type)
-
getCollectingStatementInspector
SQLStatementInspector getCollectingStatementInspector()
-
inEntityManager
void inEntityManager(Consumer<EntityManager> action)
-
inTransaction
void inTransaction(Consumer<EntityManager> action)
-
inTransaction
void inTransaction(EntityManager entityManager, Consumer<EntityManager> action)
-
fromEntityManager
<T> T fromEntityManager(Function<EntityManager,T> action)
-
fromTransaction
<T> T fromTransaction(Function<EntityManager,T> action)
-
fromTransaction
<T> T fromTransaction(EntityManager entityManager, Function<EntityManager,T> action)
-
getDialect
default Dialect getDialect()
-
-