Uses of Interface
io.jooby.hibernate.UnitOfWork.TransactionHandler
-
Uses of UnitOfWork.TransactionHandler in io.jooby.hibernate
Method parameters in io.jooby.hibernate with type arguments of type UnitOfWork.TransactionHandlerModifier and TypeMethodDescriptiondefault void
UnitOfWork.accept
(io.jooby.SneakyThrows.Consumer2<jakarta.persistence.EntityManager, UnitOfWork.TransactionHandler> callback) Runs the specified code block passing a reference to anEntityManager
and aUnitOfWork.TransactionHandler
to it.<T> T
UnitOfWork.apply
(io.jooby.SneakyThrows.Function2<jakarta.persistence.EntityManager, UnitOfWork.TransactionHandler, T> callback) Runs the specified code block passing a reference to anEntityManager
and aUnitOfWork.TransactionHandler
to it, and returns it's result.