T
- the type of the result of this Operation
CountOperation<T>
, Operation<T>
, ParameterizedOperation<T>
public interface ParameterizedCountOperation<T> extends ParameterizedOperation<T>, CountOperation<T>
ParameterizedCountOperation
is a ParameterizedOperation
that returns a count.Modifier and Type | Method | Description |
---|---|---|
ParameterizedCountOperation<T> |
apply(java.util.function.Function<? super Result.Count,? extends T> processor) |
Sets the result processor for this
Operation . |
ParameterizedCountOperation<T> |
onError(java.util.function.Consumer<java.lang.Throwable> handler) |
Provides an error handler for this
Operation . |
RowOperation<T> |
returning(java.lang.String... keys) |
Returns a
RowOperation to process the auto-generated keys, if any, returned
by this Operation . |
ParameterizedCountOperation<T> |
set(java.lang.String id,
java.lang.Object value) |
Set a parameter value.
|
ParameterizedCountOperation<T> |
set(java.lang.String id,
java.lang.Object value,
SqlType type) |
Set a parameter value.
|
ParameterizedCountOperation<T> |
set(java.lang.String id,
java.util.concurrent.CompletionStage<?> source) |
Set a parameter value to be the future value of a
CompletionStage . |
ParameterizedCountOperation<T> |
set(java.lang.String id,
java.util.concurrent.CompletionStage<?> source,
SqlType type) |
Set a parameter value to be the value of a
CompletionStage . |
ParameterizedCountOperation<T> |
timeout(java.time.Duration minTime) |
The minimum time before this
Operation might be canceled
automatically. |
RowOperation<T> returning(java.lang.String... keys)
RowOperation
to process the auto-generated keys, if any, returned
by this Operation
. If no keys are named the columns of the returned
rows are implementation dependent. If keys are specified the columns of the
returned rows are the keys. The RowOperation
must be submitted before this
Operation
is submitted. If it has not submitting this Operation
will
result throw IllegalStateException
.
ISSUE: Should this be in CountOperation
?ParameterizedCountOperation<T> onError(java.util.function.Consumer<java.lang.Throwable> handler)
Operation
ParameterizedCountOperation<T> apply(java.util.function.Function<? super Result.Count,? extends T> processor)
CountOperation
Operation
.apply
in interface CountOperation<T>
processor
- processes the count produced by executing this
Operation
and returns the resultCountOperation
ParameterizedCountOperation<T> set(java.lang.String id, java.lang.Object value)
ParameterizedOperation
Operation
is completed.set
in interface ParameterizedOperation<T>
id
- the identifier of the parameter marker to be setvalue
- the value the parameter is to be set toOperation
ParameterizedCountOperation<T> set(java.lang.String id, java.lang.Object value, SqlType type)
ParameterizedOperation
Operation
is completed.set
in interface ParameterizedOperation<T>
id
- the identifier of the parameter marker to be setvalue
- the value the parameter is to be set totype
- the SQL type of the value to send to the databaseParameterizedCountOperation<T> set(java.lang.String id, java.util.concurrent.CompletionStage<?> source)
ParameterizedOperation
CompletionStage
. The Operation
will
not be executed until the CompletionStage
is
completed. This method allows submitting Operation
s that depend on
the result of previous Operation
s rather than requiring that the
dependent Operation
be submitted only when the previous
Operation
completes. Use a default SQL type determined by the type
of the value of the CompletionStage
argument.set
in interface ParameterizedOperation<T>
id
- the identifier of the parameter marker to be setsource
- the CompletionStage
that
provides the value the parameter is to be set toOperation
ParameterizedCountOperation<T> set(java.lang.String id, java.util.concurrent.CompletionStage<?> source, SqlType type)
ParameterizedOperation
CompletionStage
. The Operation
will
not be executed until the CompletionStage
is
completed. This method allows submitting Operation
s that depend on
the result of previous Operation
s rather than requiring that the
dependent Operation
be submitted only when the previous
Operation
completes.set
in interface ParameterizedOperation<T>
id
- the identifier of the parameter marker to be setsource
- the CompletionStage
that provides
the value the parameter is to be set totype
- the SQL type of the value to send to the databaseOperation
ParameterizedCountOperation<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 EA