Package com.landawn.abacus.jdbc
Interface Jdbc.BiRowConsumer
- All Superinterfaces:
com.landawn.abacus.util.Throwables.BiConsumer<ResultSet,
List<String>, 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.BiRowConsumer
extends com.landawn.abacus.util.Throwables.BiConsumer<ResultSet,List<String>,SQLException>
The Interface BiRowConsumer.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
default Jdbc.BiRowConsumer
andThen
(com.landawn.abacus.util.Throwables.BiConsumer<? super ResultSet, ? super List<String>, SQLException> after) static Jdbc.BiRowConsumer
from
(Jdbc.RowConsumer rowConsumer) static Jdbc.BiRowConsumer
oneOff
(Class<?> entityClass, BiConsumer<List<String>, com.landawn.abacus.util.NoCachingNoUpdating.DisposableObjArray> consumer) It's stateful.static Jdbc.BiRowConsumer
oneOff
(BiConsumer<List<String>, com.landawn.abacus.util.NoCachingNoUpdating.DisposableObjArray> consumer) It's stateful.
-
Field Details
-
DO_NOTHING
-
-
Method Details
-
accept
- Specified by:
accept
in interfacecom.landawn.abacus.util.Throwables.BiConsumer<ResultSet,
List<String>, SQLException> - Throws:
SQLException
-
andThen
default Jdbc.BiRowConsumer andThen(com.landawn.abacus.util.Throwables.BiConsumer<? super ResultSet, ? super List<String>, SQLException> after) -
from
-
oneOff
@Beta @SequentialOnly @Stateful static Jdbc.BiRowConsumer oneOff(BiConsumer<List<String>, com.landawn.abacus.util.NoCachingNoUpdating.DisposableObjArray> consumer) It's stateful. Don't save or cache the returned instance for reuse or use it in parallel stream.- Parameters:
consumer
-- Returns:
-
oneOff
@Beta @SequentialOnly @Stateful static Jdbc.BiRowConsumer oneOff(Class<?> entityClass, BiConsumer<List<String>, com.landawn.abacus.util.NoCachingNoUpdating.DisposableObjArray> consumer) It's stateful. Don't save or cache the returned instance for reuse or use it in parallel stream.- Parameters:
entityClass
- used to fetch column/row value fromResultSet
by the type of fields/columns defined in this class.consumer
-- Returns:
-