public interface HandleSupplier extends Configurable<HandleSupplier>
| Modifier and Type | Method and Description |
|---|---|
Handle |
getHandle()
Returns a handle, possibly creating it lazily.
|
<V> V |
invokeInContext(ExtensionMethod extensionMethod,
ConfigRegistry config,
Callable<V> task)
Bind an extension method and configuration registry to the Handle,
invoke the given task, then reset the Handle's extension state.
|
addCustomizer, configure, define, getConfig, getConfig, registerArgument, registerArrayType, registerArrayType, registerArrayType, registerArrayType, registerCollector, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerExtension, registerRowMapper, registerRowMapper, registerRowMapper, registerRowMapper, setMapKeyColumn, setMapValueColumn, setSqlArrayArgumentStrategy, setSqlLogger, setSqlParser, setTemplateEngineHandle getHandle()
<V> V invokeInContext(ExtensionMethod extensionMethod, ConfigRegistry config, Callable<V> task) throws Exception
V - the result type of the taskextensionMethod - the method invokedconfig - the configuration registrytask - the code to execute in an extension contextException - if any exception is thrownCopyright © 2019. All rights reserved.