public class ExtensionsKt
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isKotlinClass(java.lang.Class<?> $receiver) |
static <E,X extends Exception> |
useExtension(org.jdbi.v3.core.Jdbi $receiver,
kotlin.reflect.KClass<E> extensionType,
org.jdbi.v3.core.extension.ExtensionConsumer<E,X> callback)
A convenience method which opens an extension of the given type, and yields it to a callback. A handle is opened
if needed by the extention, and closed before returning to the caller.
|
static <O> void |
useSequence(org.jdbi.v3.core.result.ResultIterable<O> $receiver,
kotlin.jvm.functions.Function1<? super kotlin.sequences.Sequence<? extends O>,kotlin.Unit> block) |
static <E,R,X extends Exception> |
withExtension(org.jdbi.v3.core.Jdbi $receiver,
kotlin.reflect.KClass<E> extensionType,
org.jdbi.v3.core.extension.ExtensionCallback<R,E,X> callback)
A convenience method which opens an extension of the given type, yields it to a callback, and returns the result
of the callback. A handle is opened if needed by the extension, and closed before returning to the caller.
|
public static boolean isKotlinClass(java.lang.Class<?> $receiver)
public static <O> void useSequence(org.jdbi.v3.core.result.ResultIterable<O> $receiver,
kotlin.jvm.functions.Function1<? super kotlin.sequences.Sequence<? extends O>,kotlin.Unit> block)
public static <E,R,X extends Exception> R withExtension(org.jdbi.v3.core.Jdbi $receiver, kotlin.reflect.KClass<E> extensionType, org.jdbi.v3.core.extension.ExtensionCallback<R,E,X> callback)
A convenience method which opens an extension of the given type, yields it to a callback, and returns the result of the callback. A handle is opened if needed by the extension, and closed before returning to the caller.
X - if thrown by the callback.extensionType - the type of extension.callback - a callback which will receive the extension.NoSuchExtensionException - if no org.jdbi.v3.core.extension.ExtensionFactory
is registered which supports the given extension type.public static <E,X extends Exception> void useExtension(org.jdbi.v3.core.Jdbi $receiver, kotlin.reflect.KClass<E> extensionType, org.jdbi.v3.core.extension.ExtensionConsumer<E,X> callback)
A convenience method which opens an extension of the given type, and yields it to a callback. A handle is opened if needed by the extention, and closed before returning to the caller.
X - if thrown by the callback.extensionType - the type of extensioncallback - a callback which will receive the extensionNoSuchExtensionException - if no org.jdbi.v3.core.extension.ExtensionFactory
is registered which supports the given extension type.