- All Superinterfaces:
- Scope
DiagnosticsListener methods.- Author:
- Lukas Eder
- 
Method SummaryModifier and TypeMethodDescription@NotNull StringThe actual statement that is being executed.The duplicate statements that all correspond to a single normalised statement.@Nullable ThrowableThe exception that occurred while diagnosing a statement.@NotNull Stringmessage()A message describing the diagnostics and the object in question.@NotNull StringThe normalised statement that all duplicates correspond to.@Nullable QueryPartpart()The object that was diagnosed if available, ornull, if there was no specificQueryPartto attach the diagnostic to.The repeated statements that all correspond to a single normalised statement.@Nullable ResultSetTheResultSetavailable in this context, ornull, if there was no result set.intThe relevant column index (1 based) in theResultSetif applicable, or0if there was no result set.intThe number of columns that were consumed from theresultSet(), or-1if there was no result set.The number of columns that were consumed from theresultSet(), or-1if there was no result set.intThe number of rows that were consumed fromresultSet(), or-1if there was no result set.intThe number of columns that were actually available fromresultSet(), or-1if there was no result set.The number of columns that were actually available fromresultSet(), or-1if there was no result set.intThe number of rows that were actually available fromresultSet(), or-1if there was no result set.booleanThere had been a missingResultSet.wasNull()call on a previously consumed primitive type, which is reported to beResultSetMetaData.isNullable(int).booleanThere had been an unnecessaryResultSet.wasNull()call to check that a non-primitive type consumed previously was null, or the call was made more than once.@Nullable QueryPartThe transformed object frompart()if available, ornull, if there was no specific transformation to attach the diagnostic to.Methods inherited from interface org.jooq.Scopeconfiguration, creationTime, data, data, data, dialect, dsl, family, settings
- 
Method Details- 
partThe object that was diagnosed if available, ornull, if there was no specificQueryPartto attach the diagnostic to.
- 
transformedPartThe transformed object frompart()if available, ornull, if there was no specific transformation to attach the diagnostic to.This helps diagnosing pattern transformations as indicated by DiagnosticsListener.transformPattern(DiagnosticsContext).
- 
messageA message describing the diagnostics and the object in question.
- 
resultSetTheResultSetavailable in this context, ornull, if there was no result set.
- 
resultSetConsumedRowsint resultSetConsumedRows()The number of rows that were consumed fromresultSet(), or-1if there was no result set.
- 
resultSetFetchedRowsint resultSetFetchedRows()The number of rows that were actually available fromresultSet(), or-1if 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 ofresultSet()is not possible (e.g. because the driver supports onlyResultSet.TYPE_FORWARD_ONLY), then this will return the same value asresultSetConsumedRows().
- 
resultSetConsumedColumnCountint resultSetConsumedColumnCount()The number of columns that were consumed from theresultSet(), or-1if 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 theresultSet()set thus far.
- 
resultSetFetchedColumnCountint resultSetFetchedColumnCount()The number of columns that were actually available fromresultSet(), or-1if there was no result set.
- 
resultSetConsumedColumnNamesThe number of columns that were consumed from theresultSet(), or-1if 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 theresultSet()set thus far.
- 
resultSetFetchedColumnNamesThe number of columns that were actually available fromresultSet(), or-1if there was no result set.
- 
resultSetUnnecessaryWasNullCallboolean resultSetUnnecessaryWasNullCall()There had been an unnecessaryResultSet.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 theResultSet.wasNull()call was missing.- See Also:
 
- 
resultSetMissingWasNullCallboolean resultSetMissingWasNullCall()There had been a missingResultSet.wasNull()call on a previously consumed primitive type, which is reported to beResultSetMetaData.isNullable(int).resultSetColumnIndex()will return the relevant column index for which theResultSet.wasNull()call was missing.- See Also:
 
- 
resultSetColumnIndexint resultSetColumnIndex()The relevant column index (1 based) in theResultSetif applicable, or0if there was no result set.
- 
actualStatementThe actual statement that is being executed.
- 
normalisedStatementThe normalised statement that all duplicates correspond to.
- 
duplicateStatementsThe duplicate statements that all correspond to a single normalised statement.This set is used by at least: 
- 
repeatedStatementsThe repeated statements that all correspond to a single normalised statement.This set is used by at least: 
- 
exceptionThe exception that occurred while diagnosing a statement.
 
-