All Superinterfaces:
AutoCloseable

public interface TxManager extends AutoCloseable
Author:
Fabrizio Giudici
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    <T> T
    computeInTx(Function<? super jakarta.persistence.EntityManager,T> task)
     
    static TxManager
     
    default void
    runInTx(Consumer<? super jakarta.persistence.EntityManager> task)
     
  • Method Details

    • getInstance

      @Nonnull static TxManager getInstance()
    • computeInTx

      <T> T computeInTx(@Nonnull Function<? super jakarta.persistence.EntityManager,T> task)
    • runInTx

      default void runInTx(@Nonnull Consumer<? super jakarta.persistence.EntityManager> task)
    • close

      default void close()
      Specified by:
      close in interface AutoCloseable