class LazyLoadingSubqueryGenerator<T : Node?>(val fieldDefinition: RelationshipFieldDefinition<*>, val parentNodeDefinition: NodeDefinition, val nodeDefinitionCollection: NodeDefinitionCollection)

Provided as receiver to lambdas which specify which nested properties to load

Parameters

fieldDefinition

definition of the currently loaded field

parentNodeDefinition

the definition of the context node

nodeDefinitionCollection

the collection of node definitions

Type Parameters

T

the type of the node to load

Constructors

Link copied to clipboard
constructor(fieldDefinition: RelationshipFieldDefinition<*>, parentNodeDefinition: NodeDefinition, nodeDefinitionCollection: NodeDefinitionCollection)

Properties

Link copied to clipboard

Subqueries to execute

Functions

Link copied to clipboard
@JvmName(name = "loadNode")
inline fun <S : T & Any, V : Node?> load(property: KProperty1<S, LazyLoadingDelegate<V, NodePropertyDelegate.NodeProperty>>, noinline subGenerator: LazyLoadingSubqueryGenerator<V>.() -> Unit? = null)

Load a specific node property

@JvmName(name = "loadNodeSet")
inline fun <S : T & Any, V : Node> load(property: KProperty1<S, LazyLoadingDelegate<V, NodeSetPropertyDelegate.NodeSetProperty>>, noinline subGenerator: LazyLoadingSubqueryGenerator<V>.() -> Unit? = null)

Load a specific node set property

Link copied to clipboard

Creates a NodeSubQuery based of the registered subQueries