Interface Jdbc.BiParametersSetter<QS,T>

Type Parameters:
QS -
T -
All Superinterfaces:
com.landawn.abacus.util.Throwables.BiConsumer<QS,T,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.BiParametersSetter<QS,T> extends com.landawn.abacus.util.Throwables.BiConsumer<QS,T,SQLException>
The Interface BiParametersSetter.
See Also:
  • Field Details

  • Method Details

    • accept

      void accept(QS preparedQuery, T param) throws SQLException
      Specified by:
      accept in interface com.landawn.abacus.util.Throwables.BiConsumer<QS,T,SQLException>
      Parameters:
      preparedQuery -
      param -
      Throws:
      SQLException
    • createForArray

      @Beta static <T> Jdbc.BiParametersSetter<PreparedStatement,T[]> createForArray(List<String> fieldNameList, Class<?> entityClass)
      It's stateful. Don't save or cache the returned instance for reuse or use it in parallel stream.
      Type Parameters:
      T -
      Parameters:
      fieldNameList -
      entityClass -
      Returns:
    • createForList

      @Beta static <T> Jdbc.BiParametersSetter<PreparedStatement,List<T>> createForList(List<String> fieldNameList, Class<?> entityClass)
      It's stateful. Don't save or cache the returned instance for reuse or use it in parallel stream.
      Type Parameters:
      T -
      Parameters:
      fieldNameList -
      entityClass -
      Returns: