Package-level declarations

Types

Link copied to clipboard
class Filter

This class provides filtering functionality on collections with a query string parameter filter. The filter syntax is inspired by MongoDB, made up of predicates containing a property name, an operator, and a value.

Link copied to clipboard

This visitor visits all conditions in the filter and overriding classes can be used to implement custom logic for each condition.

Link copied to clipboard
class FilterPrintVisitor(format: FilterPrintVisitor.PrintFormat = PrintFormat.PRETTY, indentSize: Int = 4) : FilterBaseVisitor

The FilterPrintVisitor class is responsible for visiting filter conditions and generating a formatted string representation of the conditions.

Link copied to clipboard

This visitor validates that the filter does not contain any conditions that are not allowed.

Link copied to clipboard
interface FilterVisitor

Represents a filter visitor interface.

Link copied to clipboard
data class Pagination(val page: Int = DEFAULT_PAGE, val size: Int = DEFAULT_SIZE)

Pagination class for building and parsing pagination strings for JPA or SQL queries. The pagination string format is "$page:pageValue$size:sizeValue where pageValue and sizeValue are positive integers. Pagination starts at 1.

Link copied to clipboard
data class Sorting(val criteria: MutableList<Sorting.SortCriterion> = mutableListOf())

Sorting class for building sort criteria from a string.

Link copied to clipboard
interface SortingVisitor

Interface for a visitor that visits sorting criteria.