public class DLoadContext extends Object implements LoadContext
| Constructor and Description |
|---|
DLoadContext(SpiEbeanServer ebeanServer,
BeanDescriptor<?> rootDescriptor,
Boolean readOnly,
SpiQuery<?> query) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeSecondaryQueries(OrmQueryRequest<?> parentRequest,
int defaultQueryBatch)
Execute all the secondary queries.
|
protected SpiEbeanServer |
getEbeanServer() |
protected String |
getFullPath(String path) |
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.
|
String |
getRelativePath() |
int |
getSecondaryQueriesMinBatchSize(OrmQueryRequest<?> parentRequest,
int defaultQueryBatch)
Return the minimum batch size when using QueryIterator with query joins.
|
protected boolean |
isExcludeBeanCache() |
protected Boolean |
isReadOnly()
Return the parent state which defines the sharedInstance and readOnly status
which needs to be propagated to other beans and collections.
|
boolean |
isUseAutofetchManager() |
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)
Remove the +query and +lazy secondary queries and
register them with their appropriate LoadBeanContext
or LoadManyContext.
|
void |
setPersistenceContext(PersistenceContext persistenceContext)
Set the persistence context used by this query and future lazy loading.
|
public DLoadContext(SpiEbeanServer ebeanServer, BeanDescriptor<?> rootDescriptor, Boolean readOnly, SpiQuery<?> query)
protected boolean isExcludeBeanCache()
public int getSecondaryQueriesMinBatchSize(OrmQueryRequest<?> parentRequest, int defaultQueryBatch)
getSecondaryQueriesMinBatchSize in interface LoadContextpublic void executeSecondaryQueries(OrmQueryRequest<?> parentRequest, int defaultQueryBatch)
executeSecondaryQueries in interface LoadContextparentRequest - the originating query requestpublic void registerSecondaryQueries(SpiQuery<?> query)
The parts of the secondary queries are removed and used by LoadBeanContext/LoadManyContext to build the appropriate queries.
registerSecondaryQueries in interface LoadContextpublic ObjectGraphNode getObjectGraphNode(String path)
LoadContextgetObjectGraphNode in interface LoadContextpublic boolean isUseAutofetchManager()
public String getRelativePath()
protected SpiEbeanServer getEbeanServer()
protected Boolean isReadOnly()
public PersistenceContext getPersistenceContext()
LoadContextgetPersistenceContext in interface LoadContextpublic void setPersistenceContext(PersistenceContext persistenceContext)
LoadContextsetPersistenceContext in interface LoadContextpublic void register(String path, EntityBeanIntercept ebi)
LoadContextregister in interface LoadContextpublic void register(String path, BeanCollection<?> bc)
LoadContextregister in interface LoadContextCopyright © 2014. All Rights Reserved.