Class JsonbArgumentFactory<T>
- java.lang.Object
-
- de.digitalcollections.commons.jdbi.JsonbArgumentFactory<T>
-
- All Implemented Interfaces:
org.jdbi.v3.core.argument.ArgumentFactory
public class JsonbArgumentFactory<T> extends java.lang.Object implements org.jdbi.v3.core.argument.ArgumentFactory
-
-
Constructor Summary
Constructors Constructor Description JsonbArgumentFactory(java.lang.Class<T> clz, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<org.jdbi.v3.core.argument.Argument>build(java.lang.reflect.Type type, java.lang.Object value, org.jdbi.v3.core.config.ConfigRegistry config)protected org.jdbi.v3.core.argument.Argumentbuild(T value, org.jdbi.v3.core.config.ConfigRegistry config)
-
-
-
Constructor Detail
-
JsonbArgumentFactory
public JsonbArgumentFactory(java.lang.Class<T> clz, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
build
protected org.jdbi.v3.core.argument.Argument build(T value, org.jdbi.v3.core.config.ConfigRegistry config)
-
build
public java.util.Optional<org.jdbi.v3.core.argument.Argument> build(java.lang.reflect.Type type, java.lang.Object value, org.jdbi.v3.core.config.ConfigRegistry config)- Specified by:
buildin interfaceorg.jdbi.v3.core.argument.ArgumentFactory
-
-