public interface ParameterizedCommand extends ParameterizedQuery
NamedParameterJdbcTemplate
style parameterized query string (for example: UPDATE TBL SET COL1 = :value WHERE ID = :id), its parameters, and a result
policy. The result policy is a Function<Integer, Boolean> function which must decide if the number of
affected rows is acceptable or not.| Modifier and Type | Field and Description |
|---|---|
static Function<Integer,Boolean> |
AT_LEAST_ONE_ROW
Built-in result policy which returns true only if the number of affected rows is 1 or greater.
|
static Function<Integer,Boolean> |
EXACTLY_ONE_ROW
Built-in result policy which returns true only if the number of affected rows is exactly 1.
|
| Modifier and Type | Method and Description |
|---|---|
Function<Integer,Boolean> |
resultPolicy() |
getParameterizedQueryString, getQueryParametersCopyright © 2024 The Apache Software Foundation. All rights reserved.