java.lang.Object
io.helidon.dbclient.common.DbClientMapperProvider
- All Implemented Interfaces:
MapperProvider
Java Service loader service to get database types mappers.
-
Constructor Details
-
DbClientMapperProvider
public DbClientMapperProvider()
-
-
Method Details
-
mapper
public <SOURCE,TARGET> Optional<Mapper<?,?>> mapper(Class<SOURCE> sourceClass, Class<TARGET> targetClass) Description copied from interface:MapperProvider
Find a mapper that is capable of mapping from source to target classes.- Specified by:
mapper
in interfaceMapperProvider
- Type Parameters:
SOURCE
- type of the sourceTARGET
- type of the target- Parameters:
sourceClass
- class of the sourcetargetClass
- class of the target- Returns:
- a mapper that is capable of mapping (or converting) sources to targets
-