Search in sources :

Example 1 with ResultOrRows

use of org.jooq.ResultOrRows in project jOOQ by jOOQ.

the class ResultsImpl method toString.

// -------------------------------------------------------------------------
// XXX Object API
// -------------------------------------------------------------------------
@Override
public String toString() {
    StringBuilder sb = new StringBuilder();
    String separator = "";
    for (ResultOrRows result : results) {
        if (result.result() == null)
            sb.append(separator).append("Update count: ").append(result.rows());
        else
            sb.append(separator).append("Result set:\n").append(result.result());
        separator = "\n";
    }
    return sb.toString();
}
Also used : ResultOrRows(org.jooq.ResultOrRows)

Aggregations

ResultOrRows (org.jooq.ResultOrRows)1