Class ConnectionLogger

    • Method Detail

      • newInstance

        public static Connection newInstance​(Connection conn,
                                             Log statementLog,
                                             int queryStack)
        Creates a logging version of a connection.
        Parameters:
        conn - the original connection
        statementLog - the statement log
        queryStack - the query stack
        Returns:
        the connection with logging
      • getConnection

        public Connection getConnection()
        return the wrapped connection.
        Returns:
        the connection