Interface JdbiPlugin

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  JdbiPlugin.Singleton
      Abstract base class for single-install JdbiPlugins.
    • Method Detail

      • customizeJdbi

        default void customizeJdbi​(Jdbi jdbi)
                            throws java.sql.SQLException
        Configure customizations global to any object managed by this Jdbi. This method is invoked immediately when the plugin is installed.
        Parameters:
        jdbi - the jdbi to customize
        Throws:
        java.sql.SQLException - something went wrong with the database
      • customizeHandle

        default Handle customizeHandle​(Handle handle)
                                throws java.sql.SQLException
        Configure customizations for a new Handle instance.
        Parameters:
        handle - the handle just created
        Returns:
        the transformed handle
        Throws:
        java.sql.SQLException - something went wrong with the database
      • customizeConnection

        default java.sql.Connection customizeConnection​(java.sql.Connection conn)
                                                 throws java.sql.SQLException
        Configure customizations for a newly acquired Connection.
        Parameters:
        conn - the connection Jdbi acquired
        Returns:
        the transformed connection to use
        Throws:
        java.sql.SQLException - something went wrong with the database