@FunctionalInterface public interface SqlArrayTypeFactory
SqlArrayType instances.| Modifier and Type | Method and Description |
|---|---|
Optional<SqlArrayType<?>> |
build(Type elementType,
ConfigRegistry config)
Returns an
SqlArrayType for the given elementType if this factory supports it; empty otherwise. |
static <T> SqlArrayTypeFactory |
of(Class<T> elementType,
String typeName,
Function<T,?> conversion)
Create a SqlArrayTypeFactory for the given
elementType that binds using a
type name and convert function. |
Optional<SqlArrayType<?>> build(Type elementType, ConfigRegistry config)
SqlArrayType for the given elementType if this factory supports it; empty otherwise.elementType - the array element typeconfig - the config registry, for compositionSqlArrayType for the given elementType if this factory supports it; empty otherwise.SqlArrayTypes.findFor(Type)static <T> SqlArrayTypeFactory of(Class<T> elementType, String typeName, Function<T,?> conversion)
elementType that binds using a
type name and convert function.elementType - the array element typetypeName - the database type name to bind asconversion - the function to convert to jdbc representationSqlArrayType.of(String, Function)Copyright © 2019. All rights reserved.