Interface ConnectionProvider<T extends java.sql.Connection>

  • All Known Implementing Classes:
    GatewayContextConnectionProvider

    public interface ConnectionProvider<T extends java.sql.Connection>
    This interface provides a database connection. It is used to abstract away the difference between running in a test setup and running under the full Ignition application.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T getConnection()  
      java.lang.String prepareQuery​(java.lang.String query)
      Takes a query, quotes the columns according to the translator, and performs any other modifications necessary to make it runnable.
    • Method Detail

      • getConnection

        T getConnection()
                 throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • prepareQuery

        java.lang.String prepareQuery​(java.lang.String query)
        Takes a query, quotes the columns according to the translator, and performs any other modifications necessary to make it runnable. The query should have columns wrapped in '$' to indicate where quotes should go.