Top Description Methods
org.jooq

public Interface ResultOrRows

Known Direct Implementers
org.jooq.impl.ResultsImpl.ResultOrRowsImpl
Imports
java.sql.Statement, org.jooq.conf.Settings, .ThrowExceptions, org.jooq.exception.DataAccessException

A type that contains either a Result, an update count, or an exception.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public DataAccessException
exception()

The exception if applicable or null if there was no exception.

public Result<Record>
result()

The result or null if there was no result.

public int
rows()

The update count if applicable, or the number of rows in result().

Method Detail

exceptionback to summary
public DataAccessException exception()

The exception if applicable or null if there was no exception.

Exceptions are made available through this API only if Settings#getThrowExceptions() is set to ThrowExceptions#THROW_NONE. In all other cases, a batch execution is aborted and exceptions are thrown as ordinary Java exceptions.

resultback to summary
public Result<Record> result()

The result or null if there was no result.

See Also
Statement#getResultSet()
rowsback to summary
public int rows()

The update count if applicable, or the number of rows in result().

See Also
Statement#getUpdateCount()