public InferredMapperFactory(ResultSetMapper mapper) { this.mapper = mapper; ResolvedType rt = tr.resolve(mapper.getClass()); List<ResolvedType> rs = rt.typeParametersFor(ResultSetMapper.class); if (rs.isEmpty() || rs.get(0).getErasedType().equals(Object.class)) { throw new UnsupportedOperationException("Must use a concretely typed ResultSetMapper here"); } maps = rs.get(0).getErasedType(); }
@Override public T map(int index, ResultSet r, StatementContext ctx) throws SQLException { return delegate.map(index, r, ctx); }