Package 

Class ExtensionsKt

    • Method Summary

      Modifier and Type Method Description
      final static Boolean isKotlinClass(Class<?> $self)
      final static <T extends Any> ResultIterable<T> mapTo(ResultBearing $self)
      final static <O extends Any> Unit useSequence(ResultIterable<O> $self, Function1<Sequence<O>, Unit> block)
      final static <This extends SqlStatement<This>> This bindKotlin(SqlStatement<This> $self, String name, Object obj)
      final static <This extends SqlStatement<This>> This bindKotlin(SqlStatement<This> $self, Object obj)
      final static <E extends Any, R extends Any, X extends Exception> R withExtension(Jdbi $self, KClass<E> extensionType, 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.
      final static <E extends Any, X extends Exception> Unit useExtension(Jdbi $self, KClass<E> extensionType, ExtensionConsumer<E, X> callback) A convenience method which opens an extension of the given type, and yields it to a callback.
      final static Set<Annotation> getQualifiers(KAnnotatedElement elements) Returns the set of qualifying annotations on the given Kotlin elements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • mapTo

         final static <T extends Any> ResultIterable<T> mapTo(ResultBearing $self)
      • bindKotlin

        @Beta() final static <This extends SqlStatement<This>> This bindKotlin(SqlStatement<This> $self, String name, Object obj)
      • bindKotlin

        @Beta() final static <This extends SqlStatement<This>> This bindKotlin(SqlStatement<This> $self, Object obj)
      • withExtension

         final static <E extends Any, R extends Any, X extends Exception> R withExtension(Jdbi $self, KClass<E> extensionType, 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.

        Parameters:
        extensionType - the type of extension.
        callback - a callback which will receive the extension.
      • useExtension

         final static <E extends Any, X extends Exception> Unit useExtension(Jdbi $self, KClass<E> extensionType, 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.

        Parameters:
        extensionType - the type of extension
        callback - a callback which will receive the extension