Package org.jdbi.v3.core.array
Interface SqlArrayTypeFactory
- All Known Implementing Classes:
EnumSqlArrayTypeFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory interface to produce
SqlArrayType
instances.-
Method Summary
Modifier and TypeMethodDescriptionOptional<SqlArrayType<?>>
build
(Type elementType, ConfigRegistry config) Returns anSqlArrayType
for the givenelementType
if this factory supports it; empty otherwise.static <T> SqlArrayTypeFactory
Create a SqlArrayTypeFactory for the givenelementType
that binds using a type name and convert function.
-
Method Details
-
build
Returns anSqlArrayType
for the givenelementType
if this factory supports it; empty otherwise.- Parameters:
elementType
- the array element typeconfig
- the config registry, for composition- Returns:
- an
SqlArrayType
for the givenelementType
if this factory supports it; empty otherwise. - See Also:
-
of
Create a SqlArrayTypeFactory for the givenelementType
that binds using a type name and convert function.- Parameters:
elementType
- the array element typetypeName
- the database type name to bind asconversion
- the function to convert to jdbc representation- Returns:
- the built factory
- See Also:
-