Condition
data class Condition(val field: String = EMPTY_VALUE, val operator: Operator = Operator.ALL, val value: Any = EMPTY_VALUE, val children: List<Condition> = emptyList(), val options: Map<String, Any> = emptyMap()) : ICondition<Condition> , RewritableCondition<Condition>
Represents a concrete query condition with support for various comparison operators and logical combinations.
This data class implements the ICondition interface and provides factory methods for creating common condition types. It supports both simple field comparisons and complex nested conditions using logical operators.
Samples
Constructors
Properties
Functions
Link copied to clipboard
Appends a condition to this condition using logical AND.
Link copied to clipboard
Appends a tenant ID condition to filter results by tenant.
Link copied to clipboard
Gets the date pattern formatter for date parsing operations.
Link copied to clipboard
Extracts the deletion state from this condition.
Link copied to clipboard
Gets the case sensitivity option for string operations.
Link copied to clipboard
Creates a new condition with the specified condition.