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 public interface Handler extends ExtensionHandler
Deprecated.UseExtensionHandlerdirectly.Implements the contract of a SQL Object method.
-
-
Field Summary
-
Fields inherited from interface org.jdbi.v3.core.extension.ExtensionHandler
EQUALS_HANDLER, HASHCODE_HANDLER, NULL_HANDLER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectinvoke(java.lang.Object target, java.lang.Object[] args, HandleSupplier handleSupplier)Deprecated.Executes a SQL Object method, and returns the result.default java.lang.Objectinvoke(HandleSupplier handleSupplier, java.lang.Object target, java.lang.Object... args)Deprecated.Gets invoked to return a value for the method that this handler was bound to.-
Methods inherited from interface org.jdbi.v3.core.extension.ExtensionHandler
warm
-
-
-
-
Method Detail
-
invoke
java.lang.Object invoke(java.lang.Object target, java.lang.Object[] args, HandleSupplier handleSupplier) throws java.lang.ExceptionDeprecated.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:
java.lang.Exception- any exception thrown by the method.
-
invoke
default java.lang.Object invoke(HandleSupplier handleSupplier, java.lang.Object target, java.lang.Object... args) throws java.lang.Exception
Deprecated.Description copied from interface:ExtensionHandlerGets invoked to return a value for the method that this handler was bound to.- Specified by:
invokein interfaceExtensionHandler- Parameters:
handleSupplier- AHandleSupplierinstance for accessing the handle and its related objectstarget- The target object on which the handler should operateargs- Optional arguments for the handler- Returns:
- The return value for the method that was bound to the extension handler. Can be null
- Throws:
java.lang.Exception- Any exception from the underlying code
-
-