ModelQueries

interface ModelQueries<R : Any> : RowQueries<R>

The queries of an aggregate's model, its rows typed, with the same queries returning the rows as stored.

Inheritors

Properties

Link copied to clipboard
abstract val type: AggregateType

The aggregate type these queries read.

Functions

Link copied to clipboard
abstract fun <T : Any> dynamic(rowType: Class<T>): RowQueries<T>

The same queries with each row decoded as rowType rather than typed: for a projection, which leaves out fields a typed row needs, or a reader that walks the record as stored (ObjectNode).

Link copied to clipboard
inline fun <reified T : Any> ModelQueries<*>.dynamic(): RowQueries<T>

These queries with each row decoded as T; see ModelQueries.dynamic.