public interface LoadContext
Controls the loading of reference objects for a query instance.
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteSecondaryQueries(OrmQueryRequest<?> parentRequest, boolean forEach) Execute any secondary (+query) queries if there are any defined.booleanincludeSecondary(BeanPropertyAssocMany<?> many) Return true to include a many as a secondary query for unmodified.objectGraphNode(String path) Return the node for a given path which is used by AutoTune profiling.Return the persistence context used by this query and future lazy loading.voidregister(String path, EntityBeanIntercept ebi) Register a Bean for lazy loading.voidregister(String path, EntityBeanIntercept ebi, BeanPropertyAssocOne<?> property) Register a Bean with inheritance.voidregister(String path, BeanPropertyAssocMany<?> many, BeanCollection<?> bc) Register a collection for lazy loading.intReturn the minimum batch size when using QueryIterator with query joins.
-
Method Details
-
secondaryQueriesMinBatchSize
int secondaryQueriesMinBatchSize()Return the minimum batch size when using QueryIterator with query joins. -
executeSecondaryQueries
Execute any secondary (+query) queries if there are any defined.- Parameters:
parentRequest- the originating query requestforEach- set true when using findEach iteration
-
objectGraphNode
Return the node for a given path which is used by AutoTune profiling. -
persistenceContext
PersistenceContext persistenceContext()Return the persistence context used by this query and future lazy loading. -
register
Register a Bean for lazy loading. -
register
Register a Bean with inheritance. -
register
Register a collection for lazy loading. -
includeSecondary
Return true to include a many as a secondary query for unmodified.
-