From bc897d026de2116129538c16f8b74eef84368dc5 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Tue, 13 Aug 2019 13:51:30 +0200 Subject: [PATCH] [jOOQ/jOOQ#9022] Added Javadoc --- jOOQ/src/main/java/org/jooq/ResultQuery.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jOOQ/src/main/java/org/jooq/ResultQuery.java b/jOOQ/src/main/java/org/jooq/ResultQuery.java index f9c01f2b22..11edb9422c 100644 --- a/jOOQ/src/main/java/org/jooq/ResultQuery.java +++ b/jOOQ/src/main/java/org/jooq/ResultQuery.java @@ -260,6 +260,11 @@ extends * If users prefer more fluent style streaming of queries, {@link ResultSet} * can be registered and closed via {@link ExecuteListener}, or via "smart" * third-party {@link DataSource}s. + *

+ * Depending on your JDBC driver's default behaviour, this may load the + * whole database result into the driver's memory. In order to indicate to + * the driver that you may not want to fetch all records at once, use + * {@link #fetchSize(int)} prior to calling this method. * * @return The result. * @throws DataAccessException if something went wrong executing the query @@ -303,13 +308,13 @@ extends * Depending on your JDBC driver's default behaviour, this may load the * whole database result into the driver's memory. In order to indicate to * the driver that you may not want to fetch all records at once, use - * {@link #fetchLazy(int)} + * {@link #fetchSize(int)} prior to calling this method. *

* Client code is responsible for closing the cursor after use. * * @return The resulting cursor. This will never be null. * @throws DataAccessException if something went wrong executing the query - * @see #fetchLazy(int) + * @see #fetchSize(int) */ Cursor fetchLazy() throws DataAccessException;