You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apidocs/com/google/mu/safesql/SafeSql.html
+24-16Lines changed: 24 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1477,7 +1477,8 @@ <h3>paginateLazily</h3>
1477
1477
<ahref="https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a><? extends T> resultType)</span></div>
1478
1478
<divclass="block">Paginate the encapsulated query by fetching up to <code>pageSize</code> rows for each page.
1479
1479
1480
-
<p>If <code>orderByKeys</code> is non-empty, the column values are used to control pagination.
1480
+
<p>If <code>orderByKeys</code> is non-empty, they refer to the columns that must uniquely identify
1481
+
a row. These column values are then used to control pagination.
1481
1482
For example, if <code>[groupId, timestamp]</code> can uniquely identify a row, the generated
1482
1483
SQL will use <code>"groupId" > ? OR ("groupId" = ? AND "timestamp" > ?)</code> for the next page,
1483
1484
comparing against the previous page's last row.
@@ -1488,10 +1489,11 @@ <h3>paginateLazily</h3>
1488
1489
1489
1490
<p>The standard SQL <code>FETCH NEXT ROWS</code> syntax is used for pagination.
1490
1491
If <code>orderByKeys</code> is empty, the paginated query will use <code>OFFSET</code> keyword
1491
-
to specify the next page offset.
1492
+
instead of the sort key columns to specify the next page offset.
1492
1493
1493
-
<p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
1494
-
in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
1494
+
<p>The <code>orderByKeys</code> column names are automatically double-quoted to avoid clashing
1495
+
with keywords or spaces in identifiers.
1496
+
If your DB is case sensitive, make sure you pass in the accurate case.
1495
1497
1496
1498
<p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
1497
1499
The caller should close the <code>connection</code> after done, which will close the cached
@@ -1523,7 +1525,8 @@ <h3>paginateLazily</h3>
1523
1525
<ahref="https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/lang/Class.html" title="class or interface in java.lang" class="external-link">Class</a><? extends T> resultType)</span></div>
1524
1526
<divclass="block">Paginate the encapsulated query by fetching up to <code>pageSize</code> rows for each page.
1525
1527
1526
-
<p>If <code>orderByKeys</code> is non-empty, the column values are used to control pagination.
1528
+
<p>If <code>orderByKeys</code> is non-empty, they refer to the columns that must uniquely identify
1529
+
a row. These column values are then used to control pagination.
1527
1530
For example, if <code>[groupId, timestamp]</code> can uniquely identify a row, the generated
1528
1531
SQL will use <code>"groupId" > ? OR ("groupId" = ? AND "timestamp" > ?)</code> for the next page,
1529
1532
comparing against the previous page's last row.
@@ -1534,10 +1537,11 @@ <h3>paginateLazily</h3>
1534
1537
1535
1538
<p>The standard SQL <code>FETCH NEXT ROWS</code> syntax is used for pagination.
1536
1539
If <code>orderByKeys</code> is empty, the paginated query will use <code>OFFSET</code> keyword
1537
-
to specify the next page offset.
1540
+
instead of the sort key columns to specify the next page offset.
1538
1541
1539
-
<p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
1540
-
in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
1542
+
<p>The <code>orderByKeys</code> column names are automatically double-quoted to avoid clashing
1543
+
with keywords or spaces in identifiers.
1544
+
If your DB is case sensitive, make sure you pass in the accurate case.
1541
1545
1542
1546
<p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
1543
1547
The caller should close the <code>connection</code> after done, which will close the cached
@@ -1569,7 +1573,8 @@ <h3>paginateLazily</h3>
1569
1573
<ahref="SqlFunction.html" title="interface in com.google.mu.safesql">SqlFunction</a><? super <ahref="https://docs.oracle.com/en/java/javase/24/docs/api/java.sql/java/sql/ResultSet.html" title="class or interface in java.sql" class="external-link">ResultSet</a>, ? extends T> rowMapper)</span></div>
1570
1574
<divclass="block">Paginate the encapsulated query by fetching up to <code>pageSize</code> rows for each page.
1571
1575
1572
-
<p>If <code>orderByKeys</code> is non-empty, the column values are used to control pagination.
1576
+
<p>If <code>orderByKeys</code> is non-empty, they refer to the columns that must uniquely identify
1577
+
a row. These column values are then used to control pagination.
1573
1578
For example, if <code>[groupId, timestamp]</code> can uniquely identify a row, the generated
1574
1579
SQL will use <code>"groupId" > ? OR ("groupId" = ? AND "timestamp" > ?)</code> for the next page,
1575
1580
comparing against the previous page's last row.
@@ -1580,10 +1585,11 @@ <h3>paginateLazily</h3>
1580
1585
1581
1586
<p>The standard SQL <code>FETCH NEXT ROWS</code> syntax is used for pagination.
1582
1587
If <code>orderByKeys</code> is empty, the paginated query will use <code>OFFSET</code> keyword
1583
-
to specify the next page offset.
1588
+
instead of the sort key columns to specify the next page offset.
1584
1589
1585
-
<p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
1586
-
in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
1590
+
<p>The <code>orderByKeys</code> column names are automatically double-quoted to avoid clashing
1591
+
with keywords or spaces in identifiers.
1592
+
If your DB is case sensitive, make sure you pass in the accurate case.
1587
1593
1588
1594
<p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
1589
1595
The caller should close the <code>connection</code> after done, which will close the cached
@@ -1615,7 +1621,8 @@ <h3>paginateLazily</h3>
1615
1621
<ahref="SqlFunction.html" title="interface in com.google.mu.safesql">SqlFunction</a><? super <ahref="https://docs.oracle.com/en/java/javase/24/docs/api/java.sql/java/sql/ResultSet.html" title="class or interface in java.sql" class="external-link">ResultSet</a>, ? extends T> rowMapper)</span></div>
1616
1622
<divclass="block">Paginate the encapsulated query by fetching up to <code>pageSize</code> rows for each page.
1617
1623
1618
-
<p>If <code>orderByKeys</code> is non-empty, the column values are used to control pagination.
1624
+
<p>If <code>orderByKeys</code> is non-empty, they refer to the columns that must uniquely identify
1625
+
a row. These column values are then used to control pagination.
1619
1626
For example, if <code>[groupId, timestamp]</code> can uniquely identify a row, the generated
1620
1627
SQL will use <code>"groupId" > ? OR ("groupId" = ? AND "timestamp" > ?)</code> for the next page,
1621
1628
comparing against the previous page's last row.
@@ -1626,10 +1633,11 @@ <h3>paginateLazily</h3>
1626
1633
1627
1634
<p>The standard SQL <code>FETCH NEXT ROWS</code> syntax is used for pagination.
1628
1635
If <code>orderByKeys</code> is empty, the paginated query will use <code>OFFSET</code> keyword
1629
-
to specify the next page offset.
1636
+
instead of the sort key columns to specify the next page offset.
1630
1637
1631
-
<p>All column names are automatically double-quoted to avoid clashing with keywords or spaces
1632
-
in identifiers. If your DB is case sensitive, make sure you pass in the accurate case.
1638
+
<p>The <code>orderByKeys</code> column names are automatically double-quoted to avoid clashing
1639
+
with keywords or spaces in identifiers.
1640
+
If your DB is case sensitive, make sure you pass in the accurate case.
1633
1641
1634
1642
<p>The method is lazy. Paginated queries are only sent when the returned stream is consumed.
1635
1643
The caller should close the <code>connection</code> after done, which will close the cached
0 commit comments