Class DataSourceConnectionProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.sql.Connection getConnection()  
      void releaseConnection​(@NotNull java.sql.Connection connection)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataSourceConnectionProvider

        public DataSourceConnectionProvider​(@NotNull
                                            @NotNull javax.sql.DataSource dataSource)
    • Method Detail

      • getConnection

        @NotNull
        public @NotNull java.sql.Connection getConnection()
                                                   throws java.sql.SQLException
        Specified by:
        getConnection in interface ConnectionProvider
        Throws:
        java.sql.SQLException
      • releaseConnection

        public void releaseConnection​(@NotNull
                                      @NotNull java.sql.Connection connection)
                               throws java.sql.SQLException
        Specified by:
        releaseConnection in interface ConnectionProvider
        Throws:
        java.sql.SQLException