jodd-db/src/main/java/jodd/db/DbQueryBase.java
public <T> T find(final QueryMapper<T> queryMapper) {
		final ResultSet resultSet = execute();

		try {
			if (resultSet.next()) {
				return queryMapper.process(resultSet);
			}
		} catch (SQLException sex) {
			throw new DbSqlException(sex);
		} finally {
			DbUtil.close(resultSet);
		}
		return null;
	}
public <T> T find(final QueryMapper<T> queryMapper) {
		final ResultSet resultSet = execute();

		try {
			if (resultSet.next()) {
				return queryMapper.process(resultSet);
			}
		} catch (SQLException sex) {
			throw new DbSqlException(sex);
		} finally {
			DbUtil.close(resultSet);
		}
		return null;
	}
{@link #execute() Executes} the query and {@link QueryMapper maps} single result row.