Package org.jdbi.v3.core.mapper
Class EnumByOrdinalMapperFactory
- java.lang.Object
-
- org.jdbi.v3.core.mapper.EnumByOrdinalMapperFactory
-
- All Implemented Interfaces:
ColumnMapperFactory
@Deprecated public class EnumByOrdinalMapperFactory extends java.lang.Object implements ColumnMapperFactory
Deprecated.UsegetConfig(Enums.class).setEnumStrategy(BY_ORDINAL)instead.Produces enum column mappers, which map enums from numeric columns according to ordinal value.
-
-
Constructor Summary
Constructors Constructor Description EnumByOrdinalMapperFactory()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Optional<ColumnMapper<?>>build(java.lang.reflect.Type type, ConfigRegistry config)Deprecated.Supplies a column mapper which will map columns to type if the factory supports it; empty otherwise.
-
-
-
Method Detail
-
build
public java.util.Optional<ColumnMapper<?>> build(java.lang.reflect.Type type, ConfigRegistry config)
Deprecated.Description copied from interface:ColumnMapperFactorySupplies a column mapper which will map columns to type if the factory supports it; empty otherwise.- Specified by:
buildin interfaceColumnMapperFactory- Parameters:
type- the target 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:
for composition
-
-