Interface Jdbc.RowExtractor

All Superinterfaces:
com.landawn.abacus.util.Throwables.BiConsumer<ResultSet,Object[],SQLException>
Enclosing class:
Jdbc
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Jdbc.RowExtractor extends com.landawn.abacus.util.Throwables.BiConsumer<ResultSet,Object[],SQLException>
  • Method Details

    • accept

      void accept(ResultSet rs, Object[] outputRow) throws SQLException
      Specified by:
      accept in interface com.landawn.abacus.util.Throwables.BiConsumer<ResultSet,Object[],SQLException>
      Parameters:
      rs -
      outputRow -
      Throws:
      SQLException
    • createBy

      @SequentialOnly @Stateful static Jdbc.RowExtractor createBy(Class<?> entityClassForFetch)
      It's stateful. Don't save or cache the returned instance for reuse or use it in parallel stream.
      Parameters:
      entityClassForFetch -
      Returns:
    • createBy

      @SequentialOnly @Stateful static Jdbc.RowExtractor createBy(Class<?> entityClassForFetch, Map<String,String> prefixAndFieldNameMap)
      It's stateful. Don't save or cache the returned instance for reuse or use it in parallel stream.
      Parameters:
      entityClassForFetch -
      prefixAndFieldNameMap -
      Returns:
    • createBy

      @SequentialOnly @Stateful static Jdbc.RowExtractor createBy(Class<?> entityClassForFetch, List<String> columnLabels)
      It's stateful. Don't save or cache the returned instance for reuse or use it in parallel stream.
      Parameters:
      entityClassForFetch -
      columnLabels -
      Returns:
    • createBy

      @SequentialOnly @Stateful static Jdbc.RowExtractor createBy(Class<?> entityClassForFetch, List<String> columnLabels, Map<String,String> prefixAndFieldNameMap)
      It's stateful. Don't save or cache the returned instance for reuse or use it in parallel stream.
      Parameters:
      entityClassForFetch -
      columnLabels -
      prefixAndFieldNameMap -
      Returns:
    • builder

      Returns:
    • builder

      static Jdbc.RowExtractor.RowExtractorBuilder builder(Jdbc.ColumnGetter<?> defaultColumnGetter)
      Parameters:
      defaultColumnGetter -
      Returns: