Package io.ebeaninternal.api
Interface LoadContext
-
- All Known Implementing Classes:
DLoadContext
public interface LoadContext
Controls the loading of reference objects for a query instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
executeSecondaryQueries(OrmQueryRequest<?> parentRequest, boolean forEach)
Execute any secondary (+query) queries if there are any defined.ObjectGraphNode
getObjectGraphNode(String path)
Return the node for a given path which is used by AutoTune profiling.PersistenceContext
getPersistenceContext()
Return the persistence context used by this query and future lazy loading.int
getSecondaryQueriesMinBatchSize(int defaultQueryBatch)
Return the minimum batch size when using QueryIterator with query joins.void
register(String path, BeanCollection<?> bc)
Register a collection for lazy loading.void
register(String path, EntityBeanIntercept ebi)
Register a Bean for lazy loading.void
register(String path, EntityBeanIntercept ebi, BeanPropertyAssocOne<?> property)
Register a Bean with inheritance.void
resetPersistenceContext(PersistenceContext persistenceContext)
Set the persistence context used by this query and future lazy loading.
-
-
-
Method Detail
-
getSecondaryQueriesMinBatchSize
int getSecondaryQueriesMinBatchSize(int defaultQueryBatch)
Return the minimum batch size when using QueryIterator with query joins.
-
executeSecondaryQueries
void executeSecondaryQueries(OrmQueryRequest<?> parentRequest, boolean forEach)
Execute any secondary (+query) queries if there are any defined.- Parameters:
parentRequest
- the originating query requestforEach
- set true when using findEach iteration
-
getObjectGraphNode
ObjectGraphNode getObjectGraphNode(String path)
Return the node for a given path which is used by AutoTune profiling.
-
getPersistenceContext
PersistenceContext getPersistenceContext()
Return the persistence context used by this query and future lazy loading.
-
resetPersistenceContext
void resetPersistenceContext(PersistenceContext persistenceContext)
Set the persistence context used by this query and future lazy loading.Used by query iterator when processing large result sets.
-
register
void register(String path, EntityBeanIntercept ebi)
Register a Bean for lazy loading.
-
register
void register(String path, EntityBeanIntercept ebi, BeanPropertyAssocOne<?> property)
Register a Bean with inheritance.
-
register
void register(String path, BeanCollection<?> bc)
Register a collection for lazy loading.
-
-