Package org.jdbi.v3.core.array
Interface SqlArrayTypeFactory
- 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 anSqlArrayTypefor the givenelementTypeif this factory supports it; empty otherwise.static <T> SqlArrayTypeFactoryCreate a SqlArrayTypeFactory for the givenelementTypethat binds using a type name and convert function.
-
Method Details
-
build
Returns anSqlArrayTypefor the givenelementTypeif this factory supports it; empty otherwise.- Parameters:
elementType- the array element typeconfig- the config registry, for composition- Returns:
- an
SqlArrayTypefor the givenelementTypeif this factory supports it; empty otherwise. - See Also:
-
of
Create a SqlArrayTypeFactory for the givenelementTypethat 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:
-