Interface JdbcConnectionAccess

  • All Superinterfaces:
    All Known Implementing Classes:

    public interface JdbcConnectionAccess
    Provides centralized access to JDBC connections. Centralized to hide the complexity of accounting for contextual (multi-tenant) versus non-contextual access.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.sql.Connection obtainConnection()
      Obtain a JDBC connection
      void releaseConnection​(java.sql.Connection connection)
      Release a previously obtained connection
      boolean supportsAggressiveRelease()
      Does the underlying provider of connections support aggressive releasing of connections (and re-acquisition of those connections later, if need be) in JTA environments?
    • Method Detail

      • obtainConnection

        java.sql.Connection obtainConnection()
                                      throws java.sql.SQLException
        Obtain a JDBC connection
        The obtained connection
        java.sql.SQLException - Indicates a problem getting the connection
      • releaseConnection

        void releaseConnection​(java.sql.Connection connection)
                        throws java.sql.SQLException
        Release a previously obtained connection
        connection - The connection to release
        java.sql.SQLException - Indicates a problem releasing the connection