ICondition

interface ICondition<C : ICondition<C>>

Represents a generic condition interface for building query criteria.

This interface defines the structure for conditions that can be used in database queries, supporting various operators and nested conditions for complex filtering logic.

Parameters

C

The type of the condition implementation, enabling self-referential types for nested conditions.

Inheritors

Properties

Link copied to clipboard
abstract val children: List<C>

Child conditions for logical operators (AND, OR, NOR). When using logical operators, this list cannot be empty and contains the nested conditions to combine.

Link copied to clipboard
abstract val field: String

The field name to apply the condition to. This can be empty for certain operators like AND, OR, NOR that operate on child conditions.

Link copied to clipboard
abstract val operator: Operator

The operator to apply for this condition. Defines how the field value should be compared against the provided value.

Link copied to clipboard
abstract val options: Map<String, Any>

Additional options for customizing condition behavior. Can include settings like case sensitivity, date patterns, timezone information, etc.

Link copied to clipboard
abstract val value: Any

The value to compare against when using comparison operators. The type and interpretation depend on the operator being used.