@FunctionalInterface public interface ColumnMapperFactory
| Modifier and Type | Method and Description |
|---|---|
Optional<ColumnMapper<?>> |
build(Type type,
ConfigRegistry config)
Supplies a column mapper which will map columns to type if the factory supports it; empty otherwise.
|
static ColumnMapperFactory |
of(Type type,
ColumnMapper<?> mapper)
Create a ColumnMapperFactory from a given
ColumnMapper that
matches a single Type exactly. |
Optional<ColumnMapper<?>> build(Type type, ConfigRegistry config)
type - the target type to map toconfig - the config registry, for compositionOptional.empty() otherwise.for compositionstatic ColumnMapperFactory of(Type type, ColumnMapper<?> mapper)
ColumnMapper that
matches a single Type exactly.type - the type to match with equals.mapper - the mapper to returnCopyright © 2019. All rights reserved.