Package org.jdbi.v3.sqlobject
Interface Handler
-
- All Known Implementing Classes:
CreateSqlObjectHandler,SqlBatchHandler,SqlCallHandler,SqlQueryHandler,SqlScriptsHandler,SqlUpdateHandler
- 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 Handler
Implements the contract of a SQL Object method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Objectinvoke(Object target, Object[] args, HandleSupplier handle)Executes a SQL Object method, and returns the result.default voidwarm(ConfigRegistry config)Called after the method handler is constructed to pre-initialize any important configuration data structures.
-
-
-
Method Detail
-
invoke
Object invoke(Object target, Object[] args, HandleSupplier handle) throws Exception
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
@Beta default void warm(ConfigRegistry config)
Called after the method handler is constructed to pre-initialize any important configuration data structures.- Parameters:
config- the method configuration to warm
-
-