DefaultQueryContext

class DefaultQueryContext<Q : Any, R : Any>(val queryType: QueryType, val namedAggregate: NamedAggregate, val attributes: MutableMap<String, Any> = ConcurrentHashMap()) : QueryContext<Q, R>

Constructors

Link copied to clipboard
constructor(queryType: QueryType, namedAggregate: NamedAggregate, attributes: MutableMap<String, Any> = ConcurrentHashMap())

Properties

Link copied to clipboard
open override val attributes: MutableMap<String, Any>
Link copied to clipboard
open override val namedAggregate: NamedAggregate
Link copied to clipboard
open override val queryType: QueryType

Functions

Link copied to clipboard
Link copied to clipboard
open fun <E> asListQuery(): QueryContext<IListQuery, Flux<E>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <E> asSingleQuery(): QueryContext<ISingleQuery, Mono<E>>
Link copied to clipboard
open fun <V> getAttribute(key: String): V?
Link copied to clipboard
open fun getQuery(): Q
Link copied to clipboard
open fun getRequiredResult(): R
Link copied to clipboard
open fun rewriteQuery(rewrite: (Q) -> Q): QueryContext<Q, R>
Link copied to clipboard
open fun rewriteResult(rewrite: (R) -> R): QueryContext<Q, R>
Link copied to clipboard
open fun setAttribute(key: String, value: Any): QueryContext<Q, R>
Link copied to clipboard
open fun setQuery(query: Q): QueryContext<Q, R>
Link copied to clipboard
open fun setResult(result: R): QueryContext<Q, R>
open fun setResult(handle: (Q) -> R): QueryContext<Q, R>