Class ConstantHandleSupplier

    • Field Detail

      • handle

        private final Handle handle
    • Constructor Detail

      • ConstantHandleSupplier

        ConstantHandleSupplier​(Handle handle)
    • Method Detail

      • getJdbi

        public Jdbi getJdbi()
        Description copied from interface: HandleSupplier
        Returns the owning Jdbi instance.
        Returns:
        The owning Jdbi instance.
      • getConfig

        public ConfigRegistry getConfig()
        Description copied from interface: HandleSupplier
        Returns the current Jdbi config.
        Returns:
        The current Jdbi configuration.
      • 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.
        Returns:
        An open Handle.