Class PojoMapperFactory
- java.lang.Object
-
- org.jdbi.v3.core.mapper.reflect.internal.PojoMapperFactory
-
- All Implemented Interfaces:
RowMapperFactory
public class PojoMapperFactory extends java.lang.Object implements RowMapperFactory
Row mapper that inspects animmutables-style Immutable or Modifiable value class for properties and binds them in the style ofBeanMapper.
-
-
Constructor Summary
Constructors Constructor Description PojoMapperFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<RowMapper<?>>build(java.lang.reflect.Type type, ConfigRegistry config)Supplies a row mapper which will map result set rows to type if the factory supports it; empty otherwise.
-
-
-
Method Detail
-
build
public java.util.Optional<RowMapper<?>> build(java.lang.reflect.Type type, ConfigRegistry config)
Description copied from interface:RowMapperFactorySupplies a row mapper which will map result set rows to type if the factory supports it; empty otherwise.- Specified by:
buildin interfaceRowMapperFactory- Parameters:
type- the target type to map toconfig- the config registry, for composition- Returns:
- a row mapper for the given type if this factory supports it;
Optional.empty()otherwise. - See Also:
for composition
-
-