Package org.jdbi.v3.core.array
Class SqlArrayArgumentFactory
- java.lang.Object
-
- org.jdbi.v3.core.array.SqlArrayArgumentFactory
-
- All Implemented Interfaces:
ArgumentFactory,ArgumentFactory.Preparable
public class SqlArrayArgumentFactory extends java.lang.Object implements ArgumentFactory.Preparable
Bind a Java array orCollectionto a SQL array using theSqlArrayTypeFactoryfor the given type information. Note that due to type erasure, bindingCollectionarguments withSqlStatement.bind(int, Object)may fail to determine the array component type. Provide explicit information withSqlStatement.bindByType(int, Object, org.jdbi.v3.core.generic.GenericType). This factory is registered by default.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jdbi.v3.core.argument.ArgumentFactory
ArgumentFactory.Preparable
-
-
Constructor Summary
Constructors Constructor Description SqlArrayArgumentFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ArgumentarrayArgument(java.lang.Object value, SqlArrayType<?> arrayType)java.util.Optional<java.util.function.Function<java.lang.Object,Argument>>prepare(java.lang.reflect.Type type, ConfigRegistry config)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdbi.v3.core.argument.ArgumentFactory.Preparable
build, prePreparedTypes
-
-
-
-
Method Detail
-
prepare
public java.util.Optional<java.util.function.Function<java.lang.Object,Argument>> prepare(java.lang.reflect.Type type, ConfigRegistry config)
- Specified by:
preparein interfaceArgumentFactory.Preparable
-
arrayArgument
private Argument arrayArgument(java.lang.Object value, SqlArrayType<?> arrayType)
-
-