java.lang.Object
st.orm.template.impl.ObjectMapperFactory
Factory for creating instances of a specific type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Optional<ObjectMapper<T>> getObjectMapper(int columnCount, Class<T> type, RefFactory refFactory) Returns a factory for creating instances of the specified type.
-
Method Details
-
getObjectMapper
public static <T> Optional<ObjectMapper<T>> getObjectMapper(int columnCount, @Nonnull Class<T> type, @Nonnull RefFactory refFactory) throws SqlTemplateException Returns a factory for creating instances of the specified type.- Type Parameters:
T- the type of the instance to create.- Parameters:
columnCount- the number of columns to use as constructor arguments.type- the type of the instance to create.- Returns:
- a factory for creating instances of the specified type.
- Throws:
SqlTemplateException- if the factory could not be created.
-