@@ -968,7 +968,8 @@ public <T> Optional<T> queryForOne(
968968 /**
969969 * Paginate the encapsulated query by fetching up to {@code pageSize} rows for each page.
970970 *
971- * <p>If {@code orderByKeys} is non-empty, the column values are used to control pagination.
971+ * <p>If {@code orderByKeys} is non-empty, they refer to the columns that must uniquely identify
972+ * a row. These column values are then used to control pagination.
972973 * For example, if {@code [groupId, timestamp]} can uniquely identify a row, the generated
973974 * SQL will use {@code "groupId" > ? OR ("groupId" = ? AND "timestamp" > ?)} for the next page,
974975 * comparing against the previous page's last row.
@@ -979,10 +980,11 @@ public <T> Optional<T> queryForOne(
979980 *
980981 * <p>The standard SQL {@code FETCH NEXT ROWS} syntax is used for pagination.
981982 * If {@code orderByKeys} is empty, the paginated query will use {@code OFFSET} keyword
982- * to specify the next page offset.
983+ * instead of the sort key columns to specify the next page offset.
983984 *
984- * <p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
985- * in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
985+ * <p>The {@code orderByKeys} column names are automatically double-quoted to avoid clashing
986+ * with keywords or spaces in identifiers.
987+ * If your DB is case sensitive, make sure you pass in the accurate case.
986988 *
987989 * <p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
988990 * The caller should close the {@code connection} after done, which will close the cached
@@ -1007,7 +1009,8 @@ public <T> Stream<List<T>> paginateLazily(
10071009 /**
10081010 * Paginate the encapsulated query by fetching up to {@code pageSize} rows for each page.
10091011 *
1010- * <p>If {@code orderByKeys} is non-empty, the column values are used to control pagination.
1012+ * <p>If {@code orderByKeys} is non-empty, they refer to the columns that must uniquely identify
1013+ * a row. These column values are then used to control pagination.
10111014 * For example, if {@code [groupId, timestamp]} can uniquely identify a row, the generated
10121015 * SQL will use {@code "groupId" > ? OR ("groupId" = ? AND "timestamp" > ?)} for the next page,
10131016 * comparing against the previous page's last row.
@@ -1018,10 +1021,11 @@ public <T> Stream<List<T>> paginateLazily(
10181021 *
10191022 * <p>The standard SQL {@code FETCH NEXT ROWS} syntax is used for pagination.
10201023 * If {@code orderByKeys} is empty, the paginated query will use {@code OFFSET} keyword
1021- * to specify the next page offset.
1024+ * instead of the sort key columns to specify the next page offset.
10221025 *
1023- * <p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
1024- * in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
1026+ * <p>The {@code orderByKeys} column names are automatically double-quoted to avoid clashing
1027+ * with keywords or spaces in identifiers.
1028+ * If your DB is case sensitive, make sure you pass in the accurate case.
10251029 *
10261030 * <p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
10271031 * The caller should close the {@code connection} after done, which will close the cached
@@ -1049,7 +1053,8 @@ public <T> Stream<List<T>> paginateLazily(
10491053 /**
10501054 * Paginate the encapsulated query by fetching up to {@code pageSize} rows for each page.
10511055 *
1052- * <p>If {@code orderByKeys} is non-empty, the column values are used to control pagination.
1056+ * <p>If {@code orderByKeys} is non-empty, they refer to the columns that must uniquely identify
1057+ * a row. These column values are then used to control pagination.
10531058 * For example, if {@code [groupId, timestamp]} can uniquely identify a row, the generated
10541059 * SQL will use {@code "groupId" > ? OR ("groupId" = ? AND "timestamp" > ?)} for the next page,
10551060 * comparing against the previous page's last row.
@@ -1060,10 +1065,11 @@ public <T> Stream<List<T>> paginateLazily(
10601065 *
10611066 * <p>The standard SQL {@code FETCH NEXT ROWS} syntax is used for pagination.
10621067 * If {@code orderByKeys} is empty, the paginated query will use {@code OFFSET} keyword
1063- * to specify the next page offset.
1068+ * instead of the sort key columns to specify the next page offset.
10641069 *
1065- * <p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
1066- * in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
1070+ * <p>The {@code orderByKeys} column names are automatically double-quoted to avoid clashing
1071+ * with keywords or spaces in identifiers.
1072+ * If your DB is case sensitive, make sure you pass in the accurate case.
10671073 *
10681074 * <p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
10691075 * The caller should close the {@code connection} after done, which will close the cached
@@ -1088,7 +1094,8 @@ public <T> Stream<List<T>> paginateLazily(
10881094 /**
10891095 * Paginate the encapsulated query by fetching up to {@code pageSize} rows for each page.
10901096 *
1091- * <p>If {@code orderByKeys} is non-empty, the column values are used to control pagination.
1097+ * <p>If {@code orderByKeys} is non-empty, they refer to the columns that must uniquely identify
1098+ * a row. These column values are then used to control pagination.
10921099 * For example, if {@code [groupId, timestamp]} can uniquely identify a row, the generated
10931100 * SQL will use {@code "groupId" > ? OR ("groupId" = ? AND "timestamp" > ?)} for the next page,
10941101 * comparing against the previous page's last row.
@@ -1099,10 +1106,11 @@ public <T> Stream<List<T>> paginateLazily(
10991106 *
11001107 * <p>The standard SQL {@code FETCH NEXT ROWS} syntax is used for pagination.
11011108 * If {@code orderByKeys} is empty, the paginated query will use {@code OFFSET} keyword
1102- * to specify the next page offset.
1109+ * instead of the sort key columns to specify the next page offset.
11031110 *
1104- * <p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
1105- * in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
1111+ * <p>The {@code orderByKeys} column names are automatically double-quoted to avoid clashing
1112+ * with keywords or spaces in identifiers.
1113+ * If your DB is case sensitive, make sure you pass in the accurate case.
11061114 *
11071115 * <p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
11081116 * The caller should close the {@code connection} after done, which will close the cached
0 commit comments