Package com.landawn.abacus.jdbc
Interface Jdbc.RowFilter
- All Superinterfaces:
com.landawn.abacus.util.Throwables.Predicate<ResultSet,
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.RowFilter
extends com.landawn.abacus.util.Throwables.Predicate<ResultSet,SQLException>
Generally, the result should be filtered in database side by SQL scripts.
Only user
RowFilter/BiRowFilter
if there is a specific reason or the filter can't be done by SQL scripts in database server side.
Consider using BiRowConsumer
instead because it's more efficient to test multiple records when column labels/count are used.-
Field Summary
Modifier and TypeFieldDescriptionstatic final Jdbc.RowFilter
The Constant ALWAYS_FALSE.static final Jdbc.RowFilter
The Constant ALWAYS_TRUE. -
Method Summary
Modifier and TypeMethodDescriptiondefault Jdbc.RowFilter
and
(com.landawn.abacus.util.Throwables.Predicate<? super ResultSet, SQLException> other) default Jdbc.RowFilter
negate()
boolean
default Jdbc.BiRowFilter
-
Field Details
-
ALWAYS_TRUE
The Constant ALWAYS_TRUE. -
ALWAYS_FALSE
The Constant ALWAYS_FALSE.
-
-
Method Details
-
test
- Specified by:
test
in interfacecom.landawn.abacus.util.Throwables.Predicate<ResultSet,
SQLException> - Throws:
SQLException
-
negate
-
and
default Jdbc.RowFilter and(com.landawn.abacus.util.Throwables.Predicate<? super ResultSet, SQLException> other) -
toBiRowFilter
-