T
- the type of the result of collecting the countsOperation<T>
, PrimitiveOperation<T>
public interface ArrayRowCountOperation<T> extends Operation<T>
Modifier and Type | Method | Description |
---|---|---|
<A,S extends T> |
collect(java.util.stream.Collector<? super Result.RowCount,A,S> c) |
Provides a
Collector to reduce the sequence of Counts.The result of
the Operation is the result of calling finisher on the final
accumulated result. |
ArrayRowCountOperation<T> |
onError(java.util.function.Consumer<java.lang.Throwable> handler) |
Provides an error handler for this
Operation . |
ArrayRowCountOperation<T> |
set(java.lang.String id,
java.util.concurrent.CompletionStage<?> source) |
Provide a source for a sequence of parameter values.
|
ArrayRowCountOperation<T> |
set(java.lang.String id,
java.util.concurrent.CompletionStage<?> source,
SqlType type) |
Provide a source for a sequence of parameter values.
|
ArrayRowCountOperation<T> |
set(java.lang.String id,
java.util.List<?> values) |
Set a sequence of parameter values.
|
ArrayRowCountOperation<T> |
set(java.lang.String id,
java.util.List<?> values,
SqlType type) |
Set a sequence of parameter values.
|
<S> ArrayRowCountOperation<T> |
set(java.lang.String id,
S[] values) |
Set a sequence of parameter values.
|
<S> ArrayRowCountOperation<T> |
set(java.lang.String id,
S[] values,
SqlType type) |
Set a sequence of parameter values.
|
ArrayRowCountOperation<T> |
timeout(java.time.Duration minTime) |
The minimum time before this
Operation might be canceled
automatically. |
submit
ArrayRowCountOperation<T> set(java.lang.String id, java.util.List<?> values, SqlType type)
Operation
is completed.
The Operation is completed exceptionally with ClassCastException if any of
the values cannot be converted to the specified SQL type.id
- the identifier of the parameter marker to be setvalues
- the sequence of values the parameter is to be set totype
- the SQL type of the values to send to the databasejava.lang.IllegalArgumentException
- if the length of values is not the same as
the length of the previously set parameter sequences or if the same id was
passed in a previous call.java.lang.IllegalStateException
- if the Operation
has been submittedArrayRowCountOperation<T> set(java.lang.String id, java.util.List<?> values)
Operation
is completed.
The Operation is completed exceptionally with ClassCastException if any of
the values cannot be converted to the specified SQL type.id
- the identifier of the parameter marker to be setvalues
- the value the parameter is to be set toOperation
java.lang.IllegalArgumentException
- if the length of value is not the same as
the length of the previously set parameter sequences or if the same id was
passed in a previous call.java.lang.IllegalStateException
- if the Operation
has been submitted<S> ArrayRowCountOperation<T> set(java.lang.String id, S[] values, SqlType type)
Operation
is completed.
The Operation is completed exceptionally with ClassCastException if any of
the values cannot be converted to the specified SQL type.S
- the Java type of the individual parameter valuesid
- the identifier of the parameter marker to be setvalues
- the value the parameter is to be set totype
- the SQL type of the value to send to the databasejava.lang.IllegalArgumentException
- if the length of value is not the same as
the length of the previously set parameter sequences or if the same id was
passed in a previous call.java.lang.IllegalStateException
- if the Operation
has been submitted<S> ArrayRowCountOperation<T> set(java.lang.String id, S[] values)
Operation
is completed.
The Operation is completed exceptionally with ClassCastException if any of
the values cannot be converted to the specified SQL type.S
- the Java type of the individual parameter valuesid
- the identifier of the parameter marker to be setvalues
- the value the parameter is to be set tojava.lang.IllegalArgumentException
- if the length of value is not the same as
the length of the previously set parameter sequences or if the same id was
passed in a previous call.java.lang.IllegalStateException
- if the Operation
has been submittedArrayRowCountOperation<T> set(java.lang.String id, java.util.concurrent.CompletionStage<?> source, SqlType type)
id
- the identifier of the parameter marker to be setsource
- supplies the values the parameter is to be set totype
- the SQL type of the value to send to the databasejava.lang.IllegalArgumentException
- if the same id was passed in a previous
call.java.lang.IllegalStateException
- if the Operation
has been submittedArrayRowCountOperation<T> set(java.lang.String id, java.util.concurrent.CompletionStage<?> source)
id
- the identifier of the parameter marker to be setsource
- supplies the values the parameter is to be set toOperation
java.lang.IllegalArgumentException
- if the same id was passed in a previous
call.java.lang.IllegalStateException
- if the Operation
has been submitted<A,S extends T> ArrayRowCountOperation<T> collect(java.util.stream.Collector<? super Result.RowCount,A,S> c)
Collector
to reduce the sequence of Counts.The result of
the Operation
is the result of calling finisher on the final
accumulated result. If the Collector
is
Collector.Characteristics.UNORDERED
counts may be accumulated out of
order. If the Collector
is
Collector.Characteristics.CONCURRENT
then the sequence of counts may be
split into subsequences that are reduced separately and then combined.A
- the type of the accumulatorS
- the type of the final resultc
- the Collector. Not null.java.lang.IllegalStateException
- if this method had been called previously or
this Operation has been submitted.ArrayRowCountOperation<T> onError(java.util.function.Consumer<java.lang.Throwable> handler)
Operation
ArrayRowCountOperation<T> timeout(java.time.Duration minTime)
Operation
Operation
might be canceled
automatically. The default value is forever. The time is
counted from the beginning of Operation execution. The Operation will not
be canceled before minTime
after the beginning of execution.
Some time at least minTime
after the beginning of execution,
an attempt will be made to cancel the Operation
if it has not yet
completed. Implementations are encouraged to attempt to cancel within a
reasonable time, though what is reasonable is implementation dependent.Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
DRAFT JDBC 4.4 EA5