Class GetObjectColumnMapperFactory

    • Field Detail

      • supportedTypes

        private final java.util.Set<java.lang.Class<?>> supportedTypes
    • Constructor Detail

      • GetObjectColumnMapperFactory

        protected GetObjectColumnMapperFactory​(java.lang.Class<?>... types)
      • GetObjectColumnMapperFactory

        protected GetObjectColumnMapperFactory​(java.util.Collection<java.lang.Class<?>> types)
    • Method Detail

      • forClasses

        public static ColumnMapperFactory forClasses​(java.util.Set<java.lang.Class<?>> types)
      • build

        public java.util.Optional<ColumnMapper<?>> build​(java.lang.reflect.Type type,
                                                         ConfigRegistry config)
        Description copied from interface: ColumnMapperFactory
        Supplies a column mapper which will map columns to type if the factory supports it; empty otherwise.
        Specified by:
        build in interface ColumnMapperFactory
        Parameters:
        type - the target type to map to
        config - the config registry, for composition
        Returns:
        a column mapper for the given type if this factory supports it, or Optional.empty() otherwise.
        See Also:
        for composition