- All Implemented Interfaces:
- Serializable
ResultQuery.
 
 Like any other InvalidResultException, this exception indicates to
 clients that the result was not what they expected, but this does not have
 any effect on the outcome of the statement producing that result. For
 instance, if calling ResultQuery.fetchOne() on a
 SELECT … FOR UPDATE query, or
 ResultQuery.fetchOne() on an INSERT statement, the
 database change will still be executed: the rows will still be locked or
 inserted.
 
Performance
 Methods throwing TooManyRowsException need to retrieve at most two
 records from the underlying JDBC ResultSet, which, depending on the
 Statement.getFetchSize() /
 ResultQuery.fetchSize(int), might incur additional database
 roundtrips. If this causes problems, ResultQuery.fetchAny() may be
 preferred.
- Author:
- Lukas Eder
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor for TooManyRowsException.TooManyRowsException(String message) Constructor for TooManyRowsException.
- 
Method SummaryMethods inherited from class org.jooq.exception.DataAccessExceptiongetCause, getStackTrace, sqlState, sqlStateClass, sqlStateClass, sqlStateClass, sqlStateSubclassMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
TooManyRowsExceptionpublic TooManyRowsException()Constructor for TooManyRowsException.
- 
TooManyRowsExceptionConstructor for TooManyRowsException.- Parameters:
- message- the detail message
 
 
-