java.lang.Object
io.helidon.dbclient.DbMapperProviderImpl
- All Implemented Interfaces:
MapperProvider
Java
ServiceLoader
service to get database types mappers.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.mapper.spi.MapperProvider
MapperProvider.ProviderResponse, MapperProvider.Support
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFind a mapper that is capable of mapping from source to target classes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.common.mapper.spi.MapperProvider
mapper
-
Constructor Details
-
DbMapperProviderImpl
public DbMapperProviderImpl()
-
-
Method Details
-
mapper
public MapperProvider.ProviderResponse mapper(Class<?> sourceClass, Class<?> targetClass, String qualifier) Description copied from interface:MapperProvider
Find a mapper that is capable of mapping from source to target classes. Qualifiers are defined by each component using mapping. In case of clashing qualifiers, the first mapper that returnsMapperProvider.Support.SUPPORTED
will be chosen.- Specified by:
mapper
in interfaceMapperProvider
- Parameters:
sourceClass
- class of the sourcetargetClass
- class of the targetqualifier
- qualifiers of this mapping (such asconfig
orhttp-headers
, may be empty for default- Returns:
- a mapper that is capable of mapping (or converting) sources to targets
-