public interface DbMapperManager
Mapper manager of all configured 
mappers.- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final GenericType<DbRow>Generic type for theDbRowclass.static final GenericType<List<?>>Generic type for theListof indexed parameters.static final GenericType<Map<String,?>> Generic type for theMapof String to value pairs for named parameters.
- 
Method SummaryModifier and TypeMethodDescriptionstatic DbMapperManager.Builderbuilder()Create a fluent API builder to configure the mapper manager.static DbMapperManagercreate()Create a new mapper manager from Java Service loader only.static DbMapperManagercreate(HelidonServiceLoader<DbMapperProvider> serviceLoader) Create a new mapper manager from customizedHelidonServiceLoader.<T> Tread(DbRow row, GenericType<T> expectedType) Read database row into a typed value.<T> TRead database row into a typed value.<T> List<?>toIndexedParameters(T value, Class<T> valueClass) Read object into a list of indexed parameters.toNamedParameters(T value, Class<T> valueClass) Read object into a map of named parameters.
- 
Field Details
- 
Method Details- 
builderCreate a fluent API builder to configure the mapper manager.- Returns:
- a new builder instance
 
- 
createCreate a new mapper manager from Java Service loader only.- Returns:
- mapper manager
 
- 
createCreate a new mapper manager from customizedHelidonServiceLoader.- Parameters:
- serviceLoader- service loader to use to read all- DbMapperProvider
- Returns:
- mapper manager
 
- 
readRead database row into a typed value.- Type Parameters:
- T- type of the response
- Parameters:
- row- row from a database
- expectedType- class of the response
- Returns:
- instance with data from the row
- Throws:
- MapperException- in case the mapper was not found
- See Also:
 
- 
readRead database row into a typed value.- Type Parameters:
- T- type of the response
- Parameters:
- row- row from a database
- expectedType- generic type of the response
- Returns:
- instance with data from the row
- Throws:
- MapperException- in case the mapper was not found
- See Also:
 
- 
toNamedParametersRead object into a map of named parameters.- Type Parameters:
- T- type of value
- Parameters:
- value- the typed value
- valueClass- type of the value object
- Returns:
- map with the named parameters
- See Also:
 
- 
toIndexedParametersRead object into a list of indexed parameters.- Type Parameters:
- T- type of value
- Parameters:
- value- the typed value
- valueClass- type of the value object
- Returns:
- list with indexed parameters (in the order expected by statements using this object)
- See Also:
 
 
-