public StructFetcher()

in dekaf-jdbc/src/impl/JdbcRowFetchers.java [264:288]


    public StructFetcher(@NotNull final Class<S> structClass,
                         @NotNull final NameAndClass[] components) {
      super(components);

      this.structClass = structClass;
      int n = components.length;
      fields = new Field[n];

      try {
        this.structConstructor = structClass.getDeclaredConstructor();
        this.structConstructor.setAccessible(true);

        for (int i = 0; i < n; i++) {
          String name = components[i].name;
          Field f = getClassField(structClass, name);
          if (f != null) {
            f.setAccessible(true);
            fields[i] = f;
          }
        }
      }
      catch (Exception e) {
        throw new UnexpectedReflectionException("Failed to analyze class " + structClass.getName(), e);
      }
    }