Package org.jdbi.v3.core.interceptor
Interface JdbiInterceptor<S,T>
-
- Type Parameters:
S- Transformation source type.T- Type of the transformation result.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Alpha @FunctionalInterface public interface JdbiInterceptor<S,T>
Generic interface to allow transformation operation interception. Used to manage the various inferred data types that may need special treatment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tintercept(S source, JdbiInterceptionChain<T> chain)Process a given source object.
-
-
-
Method Detail
-
intercept
@CheckForNull T intercept(@Nullable S source, JdbiInterceptionChain<T> chain)
Process a given source object.- If the interceptor wants to process the object, return the result directly.
- If the interceptor passes on processing, it must return
JdbiInterceptionChain.next()
{@code class SomeInterceptor implements JdbiInterceptor{ - Parameters:
source- A source object.- Returns:
- The destination type.
-
-