Package org.jdbi.v3.vavr
Class VavrPlugin
- java.lang.Object
-
- org.jdbi.v3.core.spi.JdbiPlugin.Singleton
-
- org.jdbi.v3.vavr.VavrPlugin
-
- All Implemented Interfaces:
JdbiPlugin
public class VavrPlugin extends JdbiPlugin.Singleton
JDBI-Plugin for vavr.io library- supports single-value arguments (
Option, ...) - supports vavr collections via
ResultBearing.collectInto(java.lang.reflect.Type)call - supports key-value mappings of a tuple result (implicitly used by map collectors)
- supports tuple projection
- supports column mapping for
Option
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jdbi.v3.core.spi.JdbiPlugin
JdbiPlugin.Singleton
-
-
Constructor Summary
Constructors Constructor Description VavrPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomizeJdbi(Jdbi jdbi)Configure customizations global to any object managed by this Jdbi.-
Methods inherited from class org.jdbi.v3.core.spi.JdbiPlugin.Singleton
equals, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdbi.v3.core.spi.JdbiPlugin
customizeConnection, customizeHandle
-
-
-
-
Method Detail
-
customizeJdbi
public void customizeJdbi(Jdbi jdbi)
Description copied from interface:JdbiPluginConfigure customizations global to any object managed by this Jdbi. This method is invoked immediately when the plugin is installed.- Parameters:
jdbi- the jdbi to customize
-
-