IPagedQuery

Interface for paginated queries that retrieve items in pages.

This interface extends Queryable and adds pagination support to control which page of results to retrieve and how many items per page.

Inheritors

Properties

Link copied to clipboard
abstract val condition: Condition

The condition currently applied to this query.

Link copied to clipboard
abstract val pagination: Pagination

The pagination settings for this query.

Link copied to clipboard
abstract val projection: Projection

The projection settings that control which fields are included in or excluded from the query results.

Link copied to clipboard
abstract val sort: List<Sort>

The list of sort criteria to apply to the query results. Each sort criterion specifies a field and direction (ascending/descending). Sorts are applied in the order they appear in the list.

Functions

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

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): IPagedQuery

Appends a tenant ID condition to filter results by tenant.

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

Creates a new query with the specified condition.

Link copied to clipboard
abstract fun withProjection(newProjection: Projection): IPagedQuery

Creates a new query with the specified projection.