@@ -95,7 +95,7 @@ private OracleResultImpl() { }
95
95
/**
96
96
* Publishes the output of a {@code mappingFunction} for each {@code Segment}
97
97
* of this {@code Result}.
98
- * @param mappingFunction {@code Segment} mapping function.
98
+ * @param mappingFunction {@code Segment} mapping function. Not null.
99
99
* @param <T> Output type of the {@code mappingFunction}
100
100
* @return {@code Publisher} of values output by the {@code mappingFunction}
101
101
*/
@@ -127,8 +127,8 @@ abstract <T> Publisher<T> publishSegments(
127
127
* {@link #map(BiFunction)}, {@link #map(BiFunction)}, and
128
128
* {@link #getRowsUpdated()}
129
129
* </p>
130
- * @param type {@code Segment} type to be mapped
131
- * @param mappingFunction {@code Segment} mapping function
130
+ * @param type {@code Segment} type to be mapped. Not null.
131
+ * @param mappingFunction {@code Segment} mapping function. Not null.
132
132
* @param <T> {@code Segment} type to be mapped
133
133
* @param <U> Output type of the {@code mappingFunction}
134
134
* @return {@code Publisher} of mapped {@code Segment}s
@@ -277,7 +277,7 @@ public OracleResultImpl filter(Predicate<Segment> filter) {
277
277
* A subsequent call to this method overwrites the publisher that has been
278
278
* set by the current call.
279
279
* </p>
280
- * @param onConsumed Publisher to subscribe to when consumed
280
+ * @param onConsumed Publisher to subscribe to when consumed. Not null.
281
281
* @return true if this result has not already been consumed, and the
282
282
* publisher will be subscribed to. Returns false if the publisher will not
283
283
* be subscribed to because this result is already consumed.
@@ -316,8 +316,8 @@ private static IllegalStateException multipleConsumptionException() {
316
316
/**
317
317
* Creates a {@code Result} that publishes a JDBC {@code resultSet} as
318
318
* {@link RowSegment}s
319
- * @param resultSet {@code ResultSet} to publish
320
- * @param adapter Adapts JDBC calls into reactive streams.
319
+ * @param resultSet {@code ResultSet} to publish. Not null.
320
+ * @param adapter Adapts JDBC calls into reactive streams. Not null.
321
321
* @return A {@code Result} for a ResultSet
322
322
*/
323
323
public static OracleResultImpl createQueryResult (
@@ -328,7 +328,8 @@ public static OracleResultImpl createQueryResult(
328
328
/**
329
329
* Creates a {@code Result} that publishes {@code outParameters} as
330
330
* {@link OutSegment}s
331
- * @param outParameters {@code OutParameters} to publish
331
+ * @param outParameters {@code OutParameters} to publish. Not null.
332
+ * @param adapter Adapts JDBC calls into reactive streams. Not null.
332
333
* @return A {@code Result} for {@code OutParameters}
333
334
*/
334
335
static OracleResultImpl createCallResult (
@@ -342,8 +343,8 @@ static OracleResultImpl createCallResult(
342
343
* {@code ResultSet} as {@link RowSegment}s
343
344
* @return A {@code Result} for values generated by DML
344
345
* @param updateCount Update count to publish
345
- * @param generatedKeys Generated values to publish
346
- * @param adapter Adapts JDBC calls into reactive streams.
346
+ * @param generatedKeys Generated values to publish. Not null.
347
+ * @param adapter Adapts JDBC calls into reactive streams. Not null.
347
348
*/
348
349
static OracleResultImpl createGeneratedValuesResult (
349
350
long updateCount , ResultSet generatedKeys , ReactiveJdbcAdapter adapter ) {
@@ -364,7 +365,7 @@ static OracleResultImpl createUpdateCountResult(long updateCount) {
364
365
* Creates a {@code Result} that publishes a batch of {@code updateCounts}
365
366
* as {@link UpdateCount} segments
366
367
* @return A {@code Result} for a batch DML update
367
- * @param updateCounts Update counts to publish
368
+ * @param updateCounts Update counts to publish. Not null.
368
369
*/
369
370
static OracleResultImpl createBatchUpdateResult (long [] updateCounts ) {
370
371
return new BatchUpdateResult (updateCounts );
@@ -375,7 +376,7 @@ static OracleResultImpl createBatchUpdateResult(long[] updateCounts) {
375
376
* {@code batchUpdateException} as {@link UpdateCount} segments, followed a
376
377
* {@link Message} segment with the {@code batchUpdateException} mapped to
377
378
* an {@link R2dbcException}
378
- * @param batchUpdateException BatchUpdateException to publish
379
+ * @param batchUpdateException BatchUpdateException to publish. Not null.
379
380
* @return A {@code Result} for a failed DML batch update
380
381
*/
381
382
static OracleResultImpl createBatchUpdateErrorResult (
@@ -386,7 +387,7 @@ static OracleResultImpl createBatchUpdateErrorResult(
386
387
/**
387
388
* Creates a {@code Result} that publishes an {@code r2dbcException} as a
388
389
* {@link Message} segment
389
- * @param r2dbcException Error to publish
390
+ * @param r2dbcException Error to publish. Not null.
390
391
* @return A {@code Result} for failed {@code Statement} execution
391
392
*/
392
393
static OracleResultImpl createErrorResult (R2dbcException r2dbcException ) {
@@ -397,8 +398,8 @@ static OracleResultImpl createErrorResult(R2dbcException r2dbcException) {
397
398
* Creates a {@code Result} that publishes a {@code warning} as a
398
399
* {@link Message} segment, followed by any {@code Segment}s of a
399
400
* {@code result}.
400
- * @param warning Warning to publish
401
- * @param result Result to publisher
401
+ * @param warning Warning to publish. Not null.
402
+ * @param result Result to publisher. Not null.
402
403
* @return A {@code Result} for a {@code Statement} execution that
403
404
* completed with a warning.
404
405
*/
@@ -635,8 +636,8 @@ private static final class WarningResult extends OracleResultImpl {
635
636
/**
636
637
* Constructs a result that publishes a {@code warning} as a
637
638
* {@link Message}, and then publishes the segments of a {@code result}.
638
- * @param warning Warning to publish
639
- * @param result Result of segments to publish after the warning
639
+ * @param warning Warning to publish. Not null.
640
+ * @param result Result of segments to publish after the warning. Not null.
640
641
*/
641
642
private WarningResult (
642
643
SQLWarning warning , OracleResultImpl result ) {
@@ -807,7 +808,7 @@ public String message() {
807
808
* to a single {@link org.reactivestreams.Subscriber}, and rejects additional
808
809
* {@code Subscriber}s by emitting {@code onError} with
809
810
* {@link IllegalStateException}.
810
- * @param publisher Publisher that emits signals
811
+ * @param publisher Publisher that emits signals. Not null.
811
812
* @param <T> Value type of {@code onNext} signals
812
813
* @return A {@code Publisher} that allows a single subscriber
813
814
*/
0 commit comments