public class SqlObjectFactory extends Object implements ExtensionFactory, OnDemandExtensions.Factory
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<?> extensionType) |
<E> E |
attach(Class<E> extensionType,
HandleSupplier handle)
Create a sql object of the specified type bound to this handle.
|
Optional<Object> |
onDemand(Jdbi db,
Class<?> extensionType,
Class<?>... extraTypes) |
public boolean accepts(Class<?> extensionType)
accepts in interface ExtensionFactorypublic <E> E attach(Class<E> extensionType, HandleSupplier handle)
attach in interface ExtensionFactoryextensionType - the type of sql object to createhandle - the Handle instance to attach ths sql object toCopyright © 2019. All rights reserved.