PagedQuery
data class PagedQuery(val condition: Condition, val projection: Projection = Projection.ALL, val sort: List<Sort> = emptyList(), val pagination: Pagination = Pagination.DEFAULT) : IPagedQuery
Data class representing a paginated query with filtering, projection, sorting, and pagination.
This class implements IPagedQuery and provides a concrete implementation for queries that need to retrieve results in pages with support for all standard query operations.
Samples
Constructors
Link copied to clipboard
constructor(condition: Condition, projection: Projection = Projection.ALL, sort: List<Sort> = emptyList(), pagination: Pagination = Pagination.DEFAULT)
Properties
Functions
Link copied to clipboard
Appends a condition to the existing condition using logical AND. This method combines the current condition with the appended condition.
Link copied to clipboard
Appends a tenant ID condition to filter results by tenant.
Link copied to clipboard
Creates a new PagedQuery with the specified condition.
Link copied to clipboard
Creates a new PagedQuery with the specified projection.