Interface statementFilterFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a function that filters an
ExecuteFunction.
The filter is executed when a subscriber subscribes
to the Publisher returned by the DatabaseClient.
statementFilterFunctions are typically used to specify additional details on
the statement objects such as fetchsize or key generation.
- since:
- 5.3
- Author:
- Mark Paluch, Juergen Hoeller
- see Also:
-
Field summary
FieldsModifier and TypeFieldDescriptionstatic final statementFilterFunctionAn emptystatementFilterFunctionthat delegates toExecuteFunction. -
Method summary
Modifier and TypeMethodDescriptiondefault statementFilterFunctionandThen(statementFilterFunction afterFilter) Return a composed filter function that first applies this filter and then applies the givenafterFilter.filter(statement statement, ExecuteFunction next) Apply this filter to the givenstatementandExecuteFunction.
-
Field Details
-
EMPTY_FILTER
An emptystatementFilterFunctionthat delegates toExecuteFunction.
-
-
Method Details
-
filter
Apply this filter to the givenstatementandExecuteFunction.The given
ExecuteFunctionrepresents the next entity in the chain, to be invoked viaExecuteFunction.execute(statement)in order to proceed with the execution, or not invoked to short-circuit the chain. -
andThen
Return a composed filter function that first applies this filter and then applies the givenafterFilter.- Parameters:
afterFilter- the filter to apply after this filter- Returns:
- the composed filter.
-