public class PrefetchSelectQuery<T> extends ObjectSelect<T>
ObjectSelect
as part of the deprecation of the SelectQuery
Modifier and Type | Field and Description |
---|---|
protected ObjRelationship |
lastPrefetchHint
Stores the last ObjRelationship in the prefetch path.
|
protected String |
prefetchPath
The relationship path from root objects to the objects being prefetched.
|
protected Collection<String> |
resultPaths |
metaData
dbEntityName, entityName, entityType, having, orderings, where
root
logger
Constructor and Description |
---|
PrefetchSelectQuery(String prefetchPath,
ObjRelationship lastPrefetchHint)
Creates a new disjoint prefetch select query.
|
Modifier and Type | Method and Description |
---|---|
void |
addResultPath(String path)
Configures an "extra" path that will resolve to an extra column (or columns) in the
result set.
|
ObjRelationship |
getLastPrefetchHint()
Returns last incoming ObjRelationship in the prefetch relationship chain.
|
String |
getPrefetchPath()
Returns the prefetchPath.
|
Collection<String> |
getResultPaths()
Returns extra result paths.
|
void |
removeResultPath(String path)
Removes an extra result path.
|
protected void |
routePrefetches(QueryRouter router,
EntityResolver resolver) |
void |
setLastPrefetchHint(ObjRelationship relationship) |
void |
setPrefetchPath(String prefetchPath)
Sets the prefetchPath.
|
void |
setPrefetchTree(PrefetchTreeNode prefetch)
Clean set of the prefetch tree without any merge with existing nodes.
|
and, and, avg, avg, cacheGroup, cacheStrategy, cacheStrategy, column, columnQuery, columnQuery, columns, count, count, createQuery, dataRowQuery, dataRowQuery, dbEntityName, dbQuery, dbQuery, distinct, entityName, entityType, fetchDataRows, getBaseMetaData, getMetaData, having, having, isFetchingDataRows, limit, localCache, localCache, max, max, min, min, offset, or, or, orderBy, orderBy, orderBy, orderBy, pageSize, prefetch, prefetch, query, query, query, query, queryTimeout, selectCount, selectFirst, sharedCache, sharedCache, statementFetchSize, sum, sum, where, where
batchIterator, createSQLAction, getColumns, getDbEntityName, getEntityName, getEntityType, getHaving, getLimit, getOffset, getOrderings, getPageSize, getPrefetches, getQueryTimeout, getStatementFetchSize, getWhere, initWithProperties, isDistinct, iterate, iterator, resolveRoot, route, select, selectOne
getRoot, setRoot, toString
getCacheGroup, getCacheStrategy, setCacheGroup, setCacheStrategy, useLocalCache, useLocalCache, useSharedCache, useSharedCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createSQLAction, route
protected String prefetchPath
protected ObjRelationship lastPrefetchHint
protected Collection<String> resultPaths
public PrefetchSelectQuery(String prefetchPath, ObjRelationship lastPrefetchHint)
protected void routePrefetches(QueryRouter router, EntityResolver resolver)
routePrefetches
in class FluentSelect<T>
public String getPrefetchPath()
public void setPrefetchPath(String prefetchPath)
prefetchPath
- The prefetchPath to setpublic void setPrefetchTree(PrefetchTreeNode prefetch)
prefetch
- prefetch treepublic ObjRelationship getLastPrefetchHint()
public void setLastPrefetchHint(ObjRelationship relationship)
public void addResultPath(String path)
path
- A valid path expression. E.g. "abc" or "db:ABC" or "abc.xyz".public void removeResultPath(String path)
public Collection<String> getResultPaths()
Copyright © 2001–2021 Apache Cayenne. All rights reserved.