Class TransactionalHandleSupplier

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.jdbi.v3.core.extension.HandleSupplier

    @Singleton
    public class TransactionalHandleSupplier
    extends java.lang.Object
    implements org.jdbi.v3.core.extension.HandleSupplier
    Bridge have to lie in jdbi package in order have access to internal methods. Implementation is the same as in ConstantHandleSupplier, except handler and config are obtained dynamically.
    Since:
    31.08.2018
    • Constructor Summary

      Constructors 
      Constructor Description
      TransactionalHandleSupplier​(org.jdbi.v3.core.Jdbi jdbi, jakarta.inject.Provider<org.jdbi.v3.core.Handle> handleProvider)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.jdbi.v3.core.config.ConfigRegistry getConfig()  
      org.jdbi.v3.core.Handle getHandle()  
      org.jdbi.v3.core.Jdbi getJdbi()  
      <V> V invokeInContext​(org.jdbi.v3.core.extension.ExtensionContext extensionContext, java.util.concurrent.Callable<V> task)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.jdbi.v3.core.extension.HandleSupplier

        close
    • Constructor Detail

      • TransactionalHandleSupplier

        @Inject
        public TransactionalHandleSupplier​(org.jdbi.v3.core.Jdbi jdbi,
                                           jakarta.inject.Provider<org.jdbi.v3.core.Handle> handleProvider)
    • Method Detail

      • getHandle

        public org.jdbi.v3.core.Handle getHandle()
        Specified by:
        getHandle in interface org.jdbi.v3.core.extension.HandleSupplier
      • getJdbi

        public org.jdbi.v3.core.Jdbi getJdbi()
        Specified by:
        getJdbi in interface org.jdbi.v3.core.extension.HandleSupplier
      • invokeInContext

        public <V> V invokeInContext​(org.jdbi.v3.core.extension.ExtensionContext extensionContext,
                                     java.util.concurrent.Callable<V> task)
                              throws java.lang.Exception
        Specified by:
        invokeInContext in interface org.jdbi.v3.core.extension.HandleSupplier
        Throws:
        java.lang.Exception
      • getConfig

        public org.jdbi.v3.core.config.ConfigRegistry getConfig()
        Specified by:
        getConfig in interface org.jdbi.v3.core.extension.HandleSupplier