ConditionCapable

Interface for query objects that can have conditions applied to them.

This interface extends RewritableCondition and provides a way to access and modify the condition associated with a query. It allows for fluent condition building and modification.

Parameters

Q

The type of the query object that implements this interface, enabling method chaining.

Inheritors

Properties

Link copied to clipboard
abstract val condition: Condition

The condition currently applied to this query.

Functions

Link copied to clipboard
open override fun appendCondition(append: Condition): Q

Appends a condition to the existing condition using logical AND. This method combines the current condition with the appended condition.

Link copied to clipboard
open fun appendTenantId(tenantId: String): Q

Appends a tenant ID condition to filter results by tenant.

Link copied to clipboard
abstract fun withCondition(newCondition: Condition): Q

Creates a new query with the specified condition.