コード例 #1
0
  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();
  }
コード例 #2
0
ファイル: SingleColumnMapper.java プロジェクト: gsmith85/jdbi
 @Override
 public T map(int index, ResultSet r, StatementContext ctx) throws SQLException {
   return delegate.map(index, r, ctx);
 }