Package org.hibernate.testing.orm.junit
Interface SessionFactoryScope
-
public interface SessionFactoryScope
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
fromSession(Function<SessionImplementor,T> action)
<T> T
fromTransaction(Function<SessionImplementor,T> action)
<T> T
fromTransaction(SessionImplementor session, Function<SessionImplementor,T> action)
SQLStatementInspector
getCollectingStatementInspector()
MetadataImplementor
getMetadataImplementor()
SessionFactoryImplementor
getSessionFactory()
StatementInspector
getStatementInspector()
<T extends StatementInspector>
TgetStatementInspector(Class<T> type)
void
inSession(Consumer<SessionImplementor> action)
void
inStatelessSession(Consumer<StatelessSession> action)
void
inStatelessTransaction(Consumer<StatelessSession> action)
void
inStatelessTransaction(StatelessSession session, Consumer<StatelessSession> action)
void
inTransaction(Consumer<SessionImplementor> action)
void
inTransaction(SessionImplementor session, Consumer<SessionImplementor> action)
-
-
-
Method Detail
-
getSessionFactory
SessionFactoryImplementor getSessionFactory()
-
getMetadataImplementor
MetadataImplementor getMetadataImplementor()
-
getStatementInspector
StatementInspector getStatementInspector()
-
getStatementInspector
<T extends StatementInspector> T getStatementInspector(Class<T> type)
-
getCollectingStatementInspector
SQLStatementInspector getCollectingStatementInspector()
-
inSession
void inSession(Consumer<SessionImplementor> action)
-
inTransaction
void inTransaction(Consumer<SessionImplementor> action)
-
inTransaction
void inTransaction(SessionImplementor session, Consumer<SessionImplementor> action)
-
fromSession
<T> T fromSession(Function<SessionImplementor,T> action)
-
fromTransaction
<T> T fromTransaction(Function<SessionImplementor,T> action)
-
fromTransaction
<T> T fromTransaction(SessionImplementor session, Function<SessionImplementor,T> action)
-
inStatelessSession
void inStatelessSession(Consumer<StatelessSession> action)
-
inStatelessTransaction
void inStatelessTransaction(Consumer<StatelessSession> action)
-
inStatelessTransaction
void inStatelessTransaction(StatelessSession session, Consumer<StatelessSession> action)
-
-