public interface DiagnosticsContext
DiagnosticsListener
methods.Modifier and Type | Method and Description |
---|---|
String |
actualStatement()
The actual statement that is being executed.
|
Set<String> |
duplicateStatements()
The duplicate statements that all correspond to a single normalised
statement.
|
String |
normalisedStatement()
The normalised statement that all duplicates correspond to.
|
List<String> |
repeatedStatements()
The repeated statements that all correspond to a single normalised
statement.
|
ResultSet |
resultSet()
The
ResultSet available in this context, or null , if
there was no result set. |
int |
resultSetColumnIndex()
The relevant column index (1 based) in the
ResultSet if
applicable, or 0 if there was no result set. |
int |
resultSetConsumedColumnCount()
The number of columns that were consumed from the
resultSet() , or
-1 if there was no result set. |
List<String> |
resultSetConsumedColumnNames()
The number of columns that were consumed from the
resultSet() , or
-1 if there was no result set. |
int |
resultSetConsumedRows()
The number of rows that were consumed from
resultSet() , or
-1 if there was no result set. |
int |
resultSetFetchedColumnCount()
The number of columns that were actually available from
resultSet() , or -1 if there was no result set. |
List<String> |
resultSetFetchedColumnNames()
The number of columns that were actually available from
resultSet() , or -1 if there was no result set. |
int |
resultSetFetchedRows()
The number of rows that were actually available from
resultSet() , or -1 if there was no result set. |
boolean |
resultSetMissingWasNullCall()
There had been a missing
ResultSet.wasNull() call on a previously
consumed primitive type, which is reported to be
ResultSetMetaData.isNullable(int) . |
boolean |
resultSetUnnecessaryWasNullCall()
There had been an unnecessary
ResultSet.wasNull() call to check
that a non-primitive type consumed previously was null, or the call was
made more than once. |
ResultSet resultSet()
ResultSet
available in this context, or null
, if
there was no result set.int resultSetConsumedRows()
resultSet()
, or
-1
if there was no result set.int resultSetFetchedRows()
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()
.
int resultSetConsumedColumnCount()
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.
int resultSetFetchedColumnCount()
resultSet()
, or -1
if there was no result set.List<String> resultSetConsumedColumnNames()
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.
List<String> resultSetFetchedColumnNames()
resultSet()
, or -1
if there was no result set.boolean resultSetUnnecessaryWasNullCall()
ResultSet.wasNull()
call to check
that a non-primitive type consumed previously was null, or the call was
made more than once.
resultSetColumnIndex()
will return the relevant column index for
which the ResultSet.wasNull()
call was missing.
resultSetColumnIndex()
boolean resultSetMissingWasNullCall()
ResultSet.wasNull()
call on a previously
consumed primitive type, which is reported to be
ResultSetMetaData.isNullable(int)
.
resultSetColumnIndex()
will return the relevant column index for
which the ResultSet.wasNull()
call was missing.
resultSetColumnIndex()
int resultSetColumnIndex()
ResultSet
if
applicable, or 0
if there was no result set.String actualStatement()
String normalisedStatement()
Set<String> duplicateStatements()
Copyright © 2019. All rights reserved.