Interface StatementFactory.StatementFunction<T extends @Nullable Object>
- Enclosing class:
StatementFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface StatementFactory.StatementFunction<T extends @Nullable Object>
Represents a function that accepts a SQL string and a
ParametersSource as arguments and produces a result.
Ideal to run statements using NamedParameterJdbcOperations .- Since:
- 4.0
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionapply(String sql, SqlParameterSource paramSource) Applies this function to the given arguments.
-
Method Details
-
apply
Applies this function to the given arguments.- Parameters:
sql- the SQL string.paramSource- parameters for the SQL string.- Returns:
- the function result.
-