CriteriaBuilder

class CriteriaBuilder(filters: MutableList<Filter> = mutableListOf(), orderBy: MutableList<OrderBy> = mutableListOf(), var page: Int = 1, var pageSize: Int? = null)

Constructors

Link copied to clipboard
constructor(criteria: Criteria)
constructor(filters: MutableList<Filter> = mutableListOf(), orderBy: MutableList<OrderBy> = mutableListOf(), page: Int = 1, pageSize: Int? = null)

Properties

Link copied to clipboard
var page: Int
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun filter(field: String, value: Any, operator: FilterOperator = FilterOperator.EQUALS)

Add a filter, for now all filters are chained with the "and" condition.

Link copied to clipboard
fun orderBy(field: String, order: Order)

Add an order by sentence

Link copied to clipboard
fun setFilters(filters: List<Filter>)
Link copied to clipboard
fun setOrderBy(orderBy: List<OrderBy>)