Class LazyHandleSupplier

    • Constructor Detail

      • LazyHandleSupplier

        LazyHandleSupplier​(Jdbi jdbi)
    • Method Detail

      • getJdbi

        public Jdbi getJdbi()
        Description copied from interface: HandleSupplier
        Returns the owning Jdbi instance.
        Specified by:
        getJdbi in interface HandleSupplier
        Returns:
        The owning Jdbi instance.
      • getHandle

        public Handle getHandle()
        Description copied from interface: HandleSupplier
        Returns a handle, possibly creating it lazily. A Handle holds a database connection, so extensions should only call this method in order to interact with the database.
        Specified by:
        getHandle in interface HandleSupplier
        Returns:
        An open Handle.
      • createHandle

        private Handle createHandle()