Module org.jooq
Package org.jooq

Interface DiagnosticsContext


  • public interface DiagnosticsContext
    A parameter object that is passed to DiagnosticsListener methods.
    Author:
    Lukas Eder
    • Method Detail

      • resultSet

        ResultSet resultSet()
        The ResultSet available in this context, or null, if there was no result set.
      • resultSetConsumedRows

        int resultSetConsumedRows()
        The number of rows that were consumed from resultSet(), or -1 if there was no result set.
      • resultSetFetchedRows

        int resultSetFetchedRows()
        The number of rows that were actually available from resultSet(), or -1 if there was no result set.

        Calling this method will try to scroll to the end of the resultSet(), in order to count the number of rows, which incurs overhead!

        If the result set is still being consumed (i.e. prior to the ResultSet.close() call), and scrolling back to the current row after scrolling to the end of resultSet() is not possible (e.g. because the driver supports only ResultSet.TYPE_FORWARD_ONLY), then this will return the same value as resultSetConsumedRows().

      • resultSetConsumedColumnCount

        int resultSetConsumedColumnCount()
        The number of columns that were consumed from the resultSet(), or -1 if there was no result set.

        If the result set is still being consumed (i.e. prior to the ResultSet.close() call), then this will return the number of columns that were retrieved from the resultSet() set thus far.

      • resultSetFetchedColumnCount

        int resultSetFetchedColumnCount()
        The number of columns that were actually available from resultSet(), or -1 if there was no result set.
      • resultSetConsumedColumnNames

        List<String> resultSetConsumedColumnNames()
        The number of columns that were consumed from the resultSet(), or -1 if there was no result set.

        If the result set is still being consumed (i.e. prior to the ResultSet.close() call), then this will return the number of columns that were retrieved from the resultSet() set thus far.

      • resultSetFetchedColumnNames

        List<String> resultSetFetchedColumnNames()
        The number of columns that were actually available from resultSet(), or -1 if there was no result set.
      • resultSetColumnIndex

        int resultSetColumnIndex()
        The relevant column index (1 based) in the ResultSet if applicable, or 0 if there was no result set.
      • actualStatement

        String actualStatement()
        The actual statement that is being executed.
      • normalisedStatement

        String normalisedStatement()
        The normalised statement that all duplicates correspond to.
      • duplicateStatements

        Set<String> duplicateStatements()
        The duplicate statements that all correspond to a single normalised statement.
      • repeatedStatements

        List<String> repeatedStatements()
        The repeated statements that all correspond to a single normalised statement.