Queries

interface Queries : QueryModels

The queries of one caller (QueryApi.of), or of a commit's tenant (SubscriptionQueries): they read in a tenant, so a state is read by its aggregate id too (TenantSnapshotQueries).

Inheritors

Functions

Link copied to clipboard
abstract override fun <S : Any> snapshots(stateType: Class<S>): TenantSnapshotQueries<S>

The snapshots of the aggregate whose state is of stateType (its root's class when the root is its own state), their rows decoded as Snapshots of it. The node finds the aggregate type from its models.

abstract override fun snapshots(type: AggregateType): TenantSnapshotQueries<ObjectNode>

The snapshots of type, their states as stored (ObjectNode): read their fields by the constants of the aggregate's contract.

Link copied to clipboard
inline fun <reified S : Any> Queries.snapshots(): TenantSnapshotQueries<S>

The snapshots of the aggregate whose state is S, in the queries' tenant; see Queries.snapshots.