Class TransactionUtil2
- java.lang.Object
-
- org.hibernate.testing.transaction.TransactionUtil2
-
public class TransactionUtil2 extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_COMPLETED_TXN
-
Constructor Summary
Constructors Constructor Description TransactionUtil2()
-
Method Summary
-
-
-
Field Detail
-
ACTION_COMPLETED_TXN
public static final String ACTION_COMPLETED_TXN
- See Also:
- Constant Field Values
-
-
Method Detail
-
inSession
public static void inSession(SessionFactoryImplementor sfi, Consumer<SessionImplementor> action)
-
fromSession
public static <R> R fromSession(SessionFactoryImplementor sfi, Function<SessionImplementor,R> action)
-
inSessionReturn
public static <R> R inSessionReturn(SessionFactoryImplementor sfi, Function<SessionImplementor,R> action)
-
inTransaction
public static void inTransaction(SessionFactoryImplementor factory, Consumer<SessionImplementor> action)
-
fromTransaction
public static <R> R fromTransaction(SessionFactoryImplementor factory, Function<SessionImplementor,R> action)
-
inTransaction
public static void inTransaction(SessionImplementor session, Consumer<SessionImplementor> action)
-
fromTransaction
public static <R> R fromTransaction(SessionImplementor session, Function<SessionImplementor,R> action)
-
inStatelessSession
public static void inStatelessSession(SessionFactoryImplementor sfi, Consumer<StatelessSession> action)
-
inStatelessTransaction
public static void inStatelessTransaction(SessionFactoryImplementor factory, Consumer<StatelessSession> action)
-
inStatelessTransaction
public static void inStatelessTransaction(StatelessSession session, Consumer<StatelessSession> action)
-
-