/** * Executes the given query returning the first matching row. * <p> * If the resulting row contains a {@link Blob} an {@link OutputStream} as to be passed in as parameter * with the name name as the column. The contents of the blob will then be written into the given * output stream (without closing it). * * @return the first matching row for the given query or <tt>null</tt> if no matching row was found * @throws SQLException in case of a database error */ @Nullable public Row queryFirst() throws SQLException { ValueHolder<Row> result = ValueHolder.of(null); iterateAll(result, Limit.singleItem()); return result.get(); }