public interface LoadContext
| Modifier and Type | Method and Description |
|---|---|
void |
executeSecondaryQueries(OrmQueryRequest<?> parentRequest,
int defaultQueryBatch)
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 autofetch profiling.
|
PersistenceContext |
getPersistenceContext()
Return the persistence context used by this query and future lazy loading.
|
int |
getSecondaryQueriesMinBatchSize(OrmQueryRequest<?> parentRequest,
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 |
registerSecondaryQueries(SpiQuery<?> query)
Register any secondary queries (+query or +lazy) with their
appropriate LoadBeanContext or LoadManyContext.
|
void |
setPersistenceContext(PersistenceContext persistenceContext)
Set the persistence context used by this query and future lazy loading.
|
int getSecondaryQueriesMinBatchSize(OrmQueryRequest<?> parentRequest, int defaultQueryBatch)
void executeSecondaryQueries(OrmQueryRequest<?> parentRequest, int defaultQueryBatch)
parentRequest - the originating query requestvoid registerSecondaryQueries(SpiQuery<?> query)
This is so the LoadBeanContext or LoadManyContext use the defined query for +query and +lazy execution.
ObjectGraphNode getObjectGraphNode(String path)
PersistenceContext getPersistenceContext()
void setPersistenceContext(PersistenceContext persistenceContext)
void register(String path, EntityBeanIntercept ebi)
void register(String path, BeanCollection<?> bc)
Copyright © 2014. All Rights Reserved.