T
- the type of the result of this Operation
Operation<T>
DynamicMultiOperation<T>
, OutOperation<T>
, ParameterizedCountOperation<T>
, ParameterizedRowOperation<T>
, RowProcessorOperation<T>
, StaticMultiOperation<T>
public interface ParameterizedOperation<T> extends Operation<T>
Connection
that the created the
ParameterizedOperation
. If not IllegalArgumentException
is
thrown. A SQL structured type is one of
SqlArray
, SqlBlob
, SqlClob
, SqlRef
or
SqlStruct
. This limitation holds recursively for all components of
a SQL structured type. An implementation may relax this constraint.Modifier and Type | Method | Description |
---|---|---|
ParameterizedOperation<T> |
set(java.lang.String id,
java.lang.Object value) |
Set a parameter value.
|
ParameterizedOperation<T> |
set(java.lang.String id,
java.lang.Object value,
SqlType type) |
Set a parameter value.
|
ParameterizedOperation<T> |
set(java.lang.String id,
java.util.concurrent.CompletionStage<?> source) |
Set a parameter value to be the future value of a
CompletionStage . |
ParameterizedOperation<T> |
set(java.lang.String id,
java.util.concurrent.CompletionStage<?> source,
SqlType type) |
Set a parameter value to be the value of a
CompletionStage . |
ParameterizedOperation<T> set(java.lang.String id, java.lang.Object value, SqlType type)
Operation
is completed.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 databaseParameterizedOperation<T> set(java.lang.String id, java.lang.Object value)
Operation
is completed.id
- the identifier of the parameter marker to be setvalue
- the value the parameter is to be set toOperation
ParameterizedOperation<T> set(java.lang.String id, java.util.concurrent.CompletionStage<?> source, SqlType type)
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.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
ParameterizedOperation<T> set(java.lang.String id, java.util.concurrent.CompletionStage<?> source)
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.id
- the identifier of the parameter marker to be setsource
- the CompletionStage
that
provides the value the parameter is to be set toOperation
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