/** * Register a column mapper for a given explicit {@link Type} * Column mappers may be reused by {@link RowMapper} to map individual columns. * * @param type the type to match with equals. * @param mapper the column mapper * @return this */ public ColumnMappers register(Type type, ColumnMapper<?> mapper) { return this.register(ColumnMapperFactory.of(type, mapper)); }
/** * Register a column mapper for a given explicit {@link GenericType} * Column mappers may be reused by {@link RowMapper} to map individual columns. * * @param <T> the type * @param type the generic type to match with equals. * @param mapper the column mapper * @return this */ public <T> ColumnMappers register(GenericType<T> type, ColumnMapper<T> mapper) { return this.register(ColumnMapperFactory.of(type.getType(), mapper)); }
/** * Register a column mapper for a given explicit {@link Type} * Column mappers may be reused by {@link RowMapper} to map individual columns. * * @param type the type to match with equals. * @param mapper the column mapper * @return this */ public ColumnMappers register(Type type, ColumnMapper<?> mapper) { return this.register(ColumnMapperFactory.of(type, mapper)); }