Package org.jdbi.v3.core.enums.internal
Class EnumMapperFactory
java.lang.Object
org.jdbi.v3.core.enums.internal.EnumMapperFactory
- All Implemented Interfaces:
QualifiedColumnMapperFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOptional<ColumnMapper<?>>
build
(QualifiedType<?> givenType, ConfigRegistry config) Supplies a column mapper which will map columns to type if the factory supports it; empty otherwise.
-
Constructor Details
-
EnumMapperFactory
public EnumMapperFactory()
-
-
Method Details
-
build
Description copied from interface:QualifiedColumnMapperFactory
Supplies a column mapper which will map columns to type if the factory supports it; empty otherwise.- Specified by:
build
in interfaceQualifiedColumnMapperFactory
- Parameters:
givenType
- the target qualified type to map toconfig
- the config registry, for composition- Returns:
- a column mapper for the given type if this factory supports it, or
Optional.empty()
otherwise. - See Also:
-