Package org.jdbi.v3.sqlobject
Interface Handler
- All Superinterfaces:
ExtensionHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Deprecated(since="3.38.0",
forRemoval=true)
public interface Handler
extends ExtensionHandler
Deprecated, for removal: This API element is subject to removal in a future version.
Implements the contract of a SQL Object method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jdbi.v3.core.extension.ExtensionHandler
ExtensionHandler.Simple
-
Method Summary
Modifier and TypeMethodDescriptiondefault AttachedExtensionHandler
attachTo
(ConfigRegistry config, Object target) Deprecated, for removal: This API element is subject to removal in a future version.Attach this extension handler to a target instance.invoke
(Object target, Object[] args, HandleSupplier handleSupplier) Deprecated, for removal: This API element is subject to removal in a future version.Executes a SQL Object method, and returns the result.
-
Method Details
-
invoke
Deprecated, for removal: This API element is subject to removal in a future version.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.handleSupplier
- 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.
-
attachTo
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ExtensionHandler
Attach this extension handler to a target instance.- Specified by:
attachTo
in interfaceExtensionHandler
- Parameters:
config
- the configuration at time of attachtarget
- the target object on which the handler should operate
-
ExtensionHandler
directly.