QueryBuilder

interface QueryBuilder<T : Any>

A builder containing predicates to filter data with.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun build(): Query<T>

Builds a new Query based on the called functions.

Link copied to clipboard
open fun <R : CharSequence> KProperty1<T, R>.contains(text: CharSequence, ignoreCase: Boolean = false)

Includes only values for which the given property contains the given text.

Link copied to clipboard
open fun <R : CharSequence> KProperty1<T, R>.endsWith(postFix: CharSequence, ignoreCase: Boolean = false)

Includes only values for which the given property ends with the given postFix.

Link copied to clipboard
open infix fun <R> KProperty1<T, R>.eq(value: R)

Includes only values for which the given property equals the given value.

Link copied to clipboard
open infix fun <R : Comparable<R>> KProperty1<T, R>.gt(value: R)

Includes only values for which the given property is greater than the given value.

Link copied to clipboard
open infix fun <R : Comparable<R>> KProperty1<T, R>.gte(value: R)

Includes only values for which the given property is greater than or equal to the given value.

Link copied to clipboard
open infix fun <R> KProperty1<T, R>.in(items: Iterable<R>)

Includes only values for which the given property is inside the given items.

Link copied to clipboard
open infix fun <R : Comparable<R>> KProperty1<T, R>.lt(value: R)

Includes only values for which the given property is lesser than the given value.

Link copied to clipboard
open infix fun <R : Comparable<R>> KProperty1<T, R>.lte(value: R)

Includes only values for which the given property is lesser than or equal to the given value.

Link copied to clipboard
open infix fun <R> KProperty1<T, R>.ne(value: R)

Includes only values for which the given property does not equal the given value.

Link copied to clipboard
open infix fun <R> KProperty1<T, R>.notIn(items: Iterable<R>)

Includes only values for which the given property is not inside the given items.

Link copied to clipboard
abstract infix fun <R> KProperty1<T, R>.predicate(predicate: (R) -> Boolean)

Includes only values for which the given predicate returns true.

Link copied to clipboard
open fun <R : CharSequence> KProperty1<T, R>.startsWith(prefix: CharSequence, ignoreCase: Boolean = false)

Includes only values for which the given property starts with the given prefix.