Package com.landawn.abacus.jdbc
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:
-
Jdbc.Columns.ColumnOne
Columns.ColumnTwo
Columns.ColumnThree
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static <T> Jdbc.BiParametersSetter<PreparedStatement,
T[]> createForArray
(List<String> fieldNameList, Class<?> entityClass) It's stateful.static <T> Jdbc.BiParametersSetter<PreparedStatement,
List<T>> createForList
(List<String> fieldNameList, Class<?> entityClass) It's stateful.Methods inherited from interface com.landawn.abacus.util.Throwables.BiConsumer
unchecked
-
Field Details
-
DO_NOTHING
-
-
Method Details
-
accept
- Specified by:
accept
in interfacecom.landawn.abacus.util.Throwables.BiConsumer<QS,
T, SQLException> - Throws:
SQLException
-
createForArray
@Beta @Stateful 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 @Stateful 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:
-