public class TransactionUtil2 extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_COMPLETED_TXN |
Constructor and Description |
---|
TransactionUtil2() |
Modifier and Type | Method and Description |
---|---|
static <R> R |
fromSession(SessionFactoryImplementor sfi,
Function<SessionImplementor,R> action) |
static <R> R |
fromTransaction(SessionFactoryImplementor factory,
Function<SessionImplementor,R> action) |
static <R> R |
fromTransaction(SessionImplementor session,
Function<SessionImplementor,R> action) |
static void |
inSession(SessionFactoryImplementor sfi,
Consumer<SessionImplementor> action) |
static void |
inStatelessSession(SessionFactoryImplementor sfi,
Consumer<StatelessSession> action) |
static void |
inStatelessTransaction(SessionFactoryImplementor factory,
Consumer<StatelessSession> action) |
static void |
inStatelessTransaction(StatelessSession session,
Consumer<StatelessSession> action) |
static void |
inTransaction(SessionFactoryImplementor factory,
Consumer<SessionImplementor> action) |
static void |
inTransaction(SessionImplementor session,
Consumer<SessionImplementor> action) |
public static final String ACTION_COMPLETED_TXN
public static void inSession(SessionFactoryImplementor sfi, Consumer<SessionImplementor> action)
public static <R> R fromSession(SessionFactoryImplementor sfi, Function<SessionImplementor,R> action)
public static void inTransaction(SessionFactoryImplementor factory, Consumer<SessionImplementor> action)
public static <R> R fromTransaction(SessionFactoryImplementor factory, Function<SessionImplementor,R> action)
public static void inTransaction(SessionImplementor session, Consumer<SessionImplementor> action)
public static <R> R fromTransaction(SessionImplementor session, Function<SessionImplementor,R> action)
public static void inStatelessSession(SessionFactoryImplementor sfi, Consumer<StatelessSession> action)
public static void inStatelessTransaction(SessionFactoryImplementor factory, Consumer<StatelessSession> action)
public static void inStatelessTransaction(StatelessSession session, Consumer<StatelessSession> action)
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.