Package org.jdbi.v3.core.mapper
Interface QualifiedColumnMapperFactory
- All Known Implementing Classes:
 CodecFactory,TypeResolvingCodecFactory
- 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 used to produce column mappers.
- 
Method Summary
Modifier and TypeMethodDescriptionstatic QualifiedColumnMapperFactoryadapt(ColumnMapperFactory factory) Adapts aColumnMapperFactoryinto a QualifiedColumnMapperFactory.Optional<ColumnMapper<?>>build(QualifiedType<?> type, ConfigRegistry config) Supplies a column mapper which will map columns to type if the factory supports it; empty otherwise.static <T> QualifiedColumnMapperFactoryof(QualifiedType<T> type, ColumnMapper<T> mapper) Create a QualifiedColumnMapperFactory from a givenColumnMapperthat matches a singleQualifiedTypeexactly. 
- 
Method Details
- 
build
Supplies a column mapper which will map columns to type if the factory supports it; empty otherwise.- Parameters:
 type- 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:
 
 - 
adapt
Adapts aColumnMapperFactoryinto a QualifiedColumnMapperFactory. The returned factory only matches qualified types with zero qualifiers.- Parameters:
 factory- the factory to adapt
 - 
of
Create a QualifiedColumnMapperFactory from a givenColumnMapperthat matches a singleQualifiedTypeexactly.- Type Parameters:
 T- the mapped type- Parameters:
 type- the mapped typemapper- the mapper- Returns:
 - A 
QualifiedColumnMapperFactory 
 
 -