Package org.jdbi.v3.core.enums.internal
Class EnumSqlArrayTypeFactory
- java.lang.Object
-
- org.jdbi.v3.core.enums.internal.EnumSqlArrayTypeFactory
-
- All Implemented Interfaces:
SqlArrayTypeFactory
public class EnumSqlArrayTypeFactory extends java.lang.Object implements SqlArrayTypeFactory
-
-
Constructor Summary
Constructors Constructor Description EnumSqlArrayTypeFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<SqlArrayType<?>>build(java.lang.reflect.Type elementType, ConfigRegistry config)Returns anSqlArrayTypefor the givenelementTypeif this factory supports it; empty otherwise.private <E extends java.lang.Enum<E>>
SqlArrayType<E>makeSqlArrayType(java.lang.Class<E> enumClass, ConfigRegistry config)
-
-
-
Method Detail
-
build
public java.util.Optional<SqlArrayType<?>> build(java.lang.reflect.Type elementType, ConfigRegistry config)
Description copied from interface:SqlArrayTypeFactoryReturns anSqlArrayTypefor the givenelementTypeif this factory supports it; empty otherwise.- Specified by:
buildin interfaceSqlArrayTypeFactory- Parameters:
elementType- the array element typeconfig- the config registry, for composition- Returns:
- an
SqlArrayTypefor the givenelementTypeif this factory supports it; empty otherwise. - See Also:
SqlArrayTypes.findFor(Type)
-
makeSqlArrayType
private <E extends java.lang.Enum<E>> SqlArrayType<E> makeSqlArrayType(java.lang.Class<E> enumClass, ConfigRegistry config)
-
-