Interface ReactivePreparedStatementCallback<T>

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 interface ReactivePreparedStatementCallback<T>
Generic callback interface for code that operates on a PreparedStatement. Allows to execute any number of operations on a single PreparedStatement, for example a single ReactiveSession.execute(Statement).

Used internally by ReactiveCqlTemplate, but also useful for application code. Note that the passed-in PreparedStatement can have been created by the framework or by a custom ReactivePreparedStatementCreator. However, the latter is hardly ever necessary, as most custom callback actions will perform updates in which case a standard PreparedStatement is fine. Custom actions will always set parameter values themselves, so that ReactivePreparedStatementCreator capability is not needed either.

Mark Paluch
See Also: