Skip navigation links

Package org.sormula.operation.filter

Filters that allow filtering algorithms to be written in Java and applied as rows are read from the database.

See: Description

Package org.sormula.operation.filter Description

Filters that allow filtering algorithms to be written in Java and applied as rows are read from the database. Filters can be implemented for any row type with by adding lambda expression with ScalarSelectOperation.addFilter(Class, java.util.function.BiPredicate):
 SelectOperation<Student> operation = new ArrayListSelectOperation<>(...)
 operation.addFilter(Student.class, (row, cascaded) -> { return row.getName().endsWith("Doe"); });
 

Deprecated filters can be implemented with SelectCascadeFilter for a single row type and AbstractSelectCascadeFilter is a base class for a filter that filters all row types (one method per type).

Since:
3.1
Skip navigation links