Class DbMapperProviderImpl
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 MapperProvider
MapperProvider.ProviderResponse, MapperProvider.SupportModifier and TypeInterfaceDescriptionstatic final recordResponse of a provider.static enumHow does this provider support the type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFind a mapper that is capable of mapping from source to target classes.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MapperProvider
mapperModifier and TypeMethodDescriptiondefault MapperProvider.ProviderResponsemapper(GenericType<?> sourceType, GenericType<?> targetType, String qualifier) Find a mapper that is capable of mapping from source to target types.
-
Constructor Details
-
DbMapperProviderImpl
public DbMapperProviderImpl()Public constructor required byServiceLoader.
-
-
Method Details
-
mapper
public MapperProvider.ProviderResponse mapper(Class<?> sourceClass, Class<?> targetClass, String qualifier) Description copied from interface:MapperProviderFind 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.SUPPORTEDwill be chosen.- Specified by:
mapperin interfaceMapperProvider- Parameters:
sourceClass- class of the sourcetargetClass- class of the targetqualifier- qualifiers of this mapping (such asconfigorhttp-headers, may be empty for default- Returns:
- a mapper that is capable of mapping (or converting) sources to targets
-