Package org.jdbi.v3.sqlobject
Interface Handler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Implements the contract of a SQL Object method.
-
Method Summary
Modifier and TypeMethodDescriptioninvoke
(Object target, Object[] args, HandleSupplier handle) Executes a SQL Object method, and returns the result.default void
warm
(ConfigRegistry config) Called after the method handler is constructed to pre-initialize any important configuration data structures.
-
Method Details
-
invoke
Executes a SQL Object method, and returns the result.- Parameters:
target
- the SQL Object instance being invokedargs
- the arguments that were passed to the method.handle
- a (possibly lazy) Handle supplier.- Returns:
- the method return value, or null if the method has a void return type.
- Throws:
Exception
- any exception thrown by the method.
-
warm
Called after the method handler is constructed to pre-initialize any important configuration data structures.- Parameters:
config
- the method configuration to warm
-