Module storm

Class ObjectMapperFactory

java.lang.Object
st.orm.template.impl.ObjectMapperFactory

public final class ObjectMapperFactory extends Object
Factory for creating instances of a specific 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.