Package org.jdbi.v3.sqlobject
Interface HandlerDecorator
-
- All Known Implementing Classes:
TransactionDecorator
- 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 HandlerDecorator
Decorates Handler objects with additional behavior.- See Also:
SqlMethodDecoratingAnnotation,HandlerDecorators
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HandlerdecorateHandler(Handler base, Class<?> sqlObjectType, Method method)Decorates theHandlerto add or substitute behavior on the given SQL Object method.
-
-
-
Method Detail
-
decorateHandler
Handler decorateHandler(Handler base, Class<?> sqlObjectType, Method method)
Decorates theHandlerto add or substitute behavior on the given SQL Object method. Implementations may alternatively return the base handler, e.g. if the conditions for applying a particular decoration are not met.- Parameters:
base- the base handler to decoratesqlObjectType- the SQL Object typemethod- the method to be decorated- Returns:
- the base handle, or a decorated handler (depending on the decorator implementation).
-
-